code: @SuppressWarnings("deprecation")
      public void validate(final Mapper mapper) {
          new MappingValidator(mapper.getOptions().getObjectFactory()).validate(mapper, this);
      }
docs: Validates this MappedClass
  @param mapper the Mapper to use for validation