private void handleParentChange(String ct,Map nMap){
  Client oClient=(Client)clientTypeMap.get(ct);
  if (oClient == null) {
    addToClientMap(ct,nMap);
    mergedClientData.put(ct,nMap);
    return;
  }
  Set oParents=oClient.getProperties(PARENT_ID);
  String oParent=getFirstString(oParents);
  String nParentId=getParentID(nMap);
  if (!nParentId.equals(oParent)) {
    removeFromProfilesMap(ct,oClient);
    if ((nMap=mergeWithParent(nMap)) != null) {
      addToClientMap(ct,nMap);
    }
  }
  mergedClientData.put(ct,nMap);
  return;
}

private void handleParentChange ( String ct , Map nMap ) { Client oClient = ( Client ) clientTypeMap . get ( ct ) ; if ( oClient == null ) { addToClientMap ( ct , nMap ) ; mergedClientData . put ( ct , nMap ) ; return ; } Set oParents = oClient . getProperties ( PARENT_ID ) ; String oParent = getFirstString ( oParents ) ; String nParentId = getParentID ( nMap ) ; if ( ! nParentId . equals ( oParent ) ) { removeFromProfilesMap ( ct , oClient ) ; if ( ( nMap = mergeWithParent ( nMap ) ) != null ) { addToClientMap ( ct , nMap ) ; } } mergedClientData . put ( ct , nMap ) ; return ; }
rearranges a client and puts it under a different style if parent changed .
