question: private static void addQueryFields ( Document doc , Node parent , Collection < PojoField > fields ) { if ( ! fields . isEmpty ( ) ) { Element prop = addProperty ( doc , parent , "fields" , null ) ; Element map = addElement ( doc , prop , "util:map" , "map-class" , "java.util.LinkedHashMap" ) ; for ( PojoField field : fields ) addElement ( doc , map , "entry" , "key" , field . javaName ( ) , "value" , GeneratorUtils . boxPrimitiveType ( field . javaTypeName ( ) ) ) ; } }
target:  Add query fields to xml document.