code: public static Set<ConstraintViolation<Object>> validate(final Object obj, final Class<?>... scopes) {
          if (scopes == null) {
              return validator().validate(obj, Default.class);
          }
          return validator().validate(obj, scopes);
      }
docs: Validates the given object by using a newly created validator.
  
  @param obj
  Object to validate using the given scopes.
  @param scopes
  Scopes or <code>null</code> for the default scope.
  
  @return Constraint violations.