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