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()));
  }
}

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 ( ) ) ) ; } }
add query fields to xml document .
