code: private GenericData map2GenericData(GenericData gdo, Map<String, Object> map) {
          for (Entry<String, Object> entry : map.entrySet()) {
              if (entry.getValue() == null) {
                  if (entry.getKey().equals(AuditEvent.TARGET_APPNAME)) {
                      gdo.addPair(entry.getKey(), AuditUtils.getJ2EEComponentName());
                  }
              } else {
                  gdo.addPair(entry.getKey(), entry.getValue().toString());
              }
          }
          if (tc.isDebugEnabled()) {
              Tr.debug(tc, "gdo: " + gdo.toString());
          }
          return gdo;
      }
docs: Given a Map, add the corresponding audit data to the given GenericData object.
  
  @param gdo - GenericData object
  @param map - Java Map object