public static <T extends MPBase> boolean validate(T objectToValidate) throws MPValidationException {
        Collection<ValidationViolation> colViolations = validate(new Vector<ValidationViolation>(), objectToValidate);
        if (!colViolations.isEmpty()) {
            throw new MPValidationException(colViolations);
        }
        return true;
    }
public static < T extends MPBase > boolean validate ( T objectToValidate ) throws MPValidationException { Collection < ValidationViolation > colViolations = validate ( new Vector < ValidationViolation > ( ) , objectToValidate ) ; if ( ! colViolations . isEmpty ( ) ) { throw new MPValidationException ( colViolations ) ; } return true ; }
Evaluates every field of an obj using Validation annotations

@param objectToValidate          Object to be evaluated
@param <T>
@return
@throws MPValidationException