public Client addClient(SSOToken token,String clientType,Map cMap,boolean store) throws AMClientCapException {
  Client client=null;
  if ((cMap == null) || (cMap.isEmpty())) {
    return client;
  }
  if (debug.messageEnabled()) {
    debug.message(CLASS + "Adding new Client: " + cMap);
  }
  if (store) {
synchronized (internalClientData) {
      intCapInstance.addClient(token,cMap);
      cMap=mergeWithParent(cMap);
      internalClientData.put(clientType,cMap);
    }
  }
 else {
    cMap=mergeWithParent(cMap);
  }
  client=addToIndexes(clientType,cMap,store);
  if (!store) {
    loadedClientsMap.put(clientType,client);
  }
  return client;
}

public Client addClient ( SSOToken token , String clientType , Map cMap , boolean store ) throws AMClientCapException { Client client = null ; if ( ( cMap == null ) || ( cMap . isEmpty ( ) ) ) { return client ; } if ( debug . messageEnabled ( ) ) { debug . message ( CLASS + "Adding new Client: " + cMap ) ; } if ( store ) { synchronized ( internalClientData ) { intCapInstance . addClient ( token , cMap ) ; cMap = mergeWithParent ( cMap ) ; internalClientData . put ( clientType , cMap ) ; } } else { cMap = mergeWithParent ( cMap ) ; } client = addToIndexes ( clientType , cMap , store ) ; if ( ! store ) { loadedClientsMap . put ( clientType , client ) ; } return client ; }
add the new client to internal db , if store = = true , else keep it only in memory .
