A generalized bag-like boundary condition for fields with arbitrary spin. (9th July 2015)