question: public Method loadMethod ( ) { methodToGenerate = new Method ( ) ; membership = Membership . MAPPER ; methodToGenerate . setClazz ( configClass ) ; Class < ? > destinationClass = destinationField . getType ( ) ; Class < ? > sourceClass = sourceField . getType ( ) ; methodToGenerate . setReturnType ( destinationClass ) ; switch ( methodDefined . getParameterNumber ( ) ) { case ZERO : methodToGenerate . setParameters ( new Class < ? > [ ] { } ) ; break ; case ONE : methodToGenerate . setParameters ( new Class < ? > [ ] { sourceClass } ) ; break ; case TWO : methodToGenerate . setParameters ( new Class < ? > [ ] { destinationClass , sourceClass } ) ; break ; } methodToGenerate . setOriginalName ( methodDefined . getName ( ) ) ; switch ( methodDefined . getType ( ) ) { case STATIC : methodToGenerate . setName ( definedName ( ) ) ; break ; case DYNAMIC : methodToGenerate . setName ( dynamicName ( ) ) ; break ; } methodDefined . setName ( methodToGenerate . getName ( ) ) ; int count = 1 ; String body = "{try{" ; switch ( methodDefined . getParameterNumber ( ) ) { case TWO : String dType = placeholders . get ( destinationTypePattern ) ; String dName = placeholders . get ( destinationPattern ) ; body += dType + " " + dName + " = (" + dType + ") $" + count ++ + ";" + newLine ; case ONE : String sType = placeholders . get ( sourceTypePattern ) ; String sName = placeholders . get ( sourcePattern ) ; body += sType + " " + sName + " = (" + sType + ") $" + count + ";" + newLine ; default : break ; } body += methodDefined . getContent ( ) ; for ( Entry < String , String > pair : placeholders . entrySet ( ) ) if ( ! isNull ( pair . getValue ( ) ) ) body = body . replaceAll ( pair . getKey ( ) , Matcher . quoteReplacement ( pair . getValue ( ) ) ) ; return methodToGenerate . setBody ( body + "}catch(java.lang.Exception e){" + error ( ) + "}return " + defaultPrimitiveValue ( destinationClass ) + ";}" ) ; }
target:  Loads the method to generate.