code: private static void setDefaultValue(Definition def, String className, String stringValue)
     {
        if (className.endsWith(stringValue))
           def.setDefaultValue(className.substring(0, className.length() - stringValue.length()));
     }
docs: check defalut value and set it
  
  @param def         definition
  @param className   the class name
  @param stringValue post-fix string