public static void verifySetterMethods(Class<?> clazz,MappedField... fields){
  String methodName=null;
  String fieldName=null;
  Class<?> fieldType=null;
  try {
    for (    MappedField field : fields) {
      fieldName=field.getName();
      fieldType=field.getType();
      String customSet=field.setMethod();
      if (!isNull(customSet) && !customSet.equals(Constants.DEFAULT_ACCESSOR_VALUE))       try {
        clazz.getMethod(customSet,fieldType);
        field.setMethod(customSet);
        continue;
      }
 catch (      Exception e) {
        Error.customMethod("set",customSet,clazz);
      }
      methodName=mSet(fieldName);
      clazz.getMethod(methodName,fieldType);
      field.setMethod(methodName);
    }
  }
 catch (  Exception e) {
    Error.method(methodName,fieldName,clazz);
  }
}

public static void verifySetterMethods ( Class < ? > clazz , MappedField ... fields ) { String methodName = null ; String fieldName = null ; Class < ? > fieldType = null ; try { for ( MappedField field : fields ) { fieldName = field . getName ( ) ; fieldType = field . getType ( ) ; String customSet = field . setMethod ( ) ; if ( ! isNull ( customSet ) && ! customSet . equals ( Constants . DEFAULT_ACCESSOR_VALUE ) ) try { clazz . getMethod ( customSet , fieldType ) ; field . setMethod ( customSet ) ; continue ; } catch ( Exception e ) { Error . customMethod ( "set" , customSet , clazz ) ; } methodName = mSet ( fieldName ) ; clazz . getMethod ( methodName , fieldType ) ; field . setMethod ( methodName ) ; } } catch ( Exception e ) { Error . method ( methodName , fieldName , clazz ) ; } }
verifies that the setter methods are compliant with the naming convention .
