There is no sence to have resource methods in non-resource class. The validation works in Java files.