bean validation for loading as REST resource at bean deployment time
(needs test)