protected void loadMaps(){
  Set clientTypes=mergedClientData.keySet();
  Iterator keys=clientTypes.iterator();
  String clientType=null;
  Map clientDataMap=null;
  while (keys.hasNext()) {
    clientType=(String)keys.next();
    clientDataMap=(Map)mergedClientData.get(clientType);
    setParentStyles(clientDataMap);
  }
  keys=clientTypes.iterator();
  while (keys.hasNext()) {
    clientType=(String)keys.next();
    clientDataMap=(Map)mergedClientData.get(clientType);
    addToClientMap(clientType,clientDataMap);
  }
}

protected void loadMaps ( ) { Set clientTypes = mergedClientData . keySet ( ) ; Iterator keys = clientTypes . iterator ( ) ; String clientType = null ; Map clientDataMap = null ; while ( keys . hasNext ( ) ) { clientType = ( String ) keys . next ( ) ; clientDataMap = ( Map ) mergedClientData . get ( clientType ) ; setParentStyles ( clientDataMap ) ; } keys = clientTypes . iterator ( ) ; while ( keys . hasNext ( ) ) { clientType = ( String ) keys . next ( ) ; clientDataMap = ( Map ) mergedClientData . get ( clientType ) ; addToClientMap ( clientType , clientDataMap ) ; } }
refactor method load the useragentmap . the useragentmap is used by the client detector to query clienttype .
