protected void populateClient(String clientName,Properties props) throws InvalidPropertiesFormatException {
  String name=props.getProperty(clientName + NAME_SUFFIX);
  String attrList=props.getProperty(clientName + ATTRIBUTE_SUFFIX);
  StringTokenizer st=new StringTokenizer(attrList,COMMA);
  Map attributes=new HashMap();
  Set attributeValues=null;
  while (st.hasMoreTokens()) {
    attributeValues=new HashSet();
    String entry=st.nextToken();
    String attrName=entry.substring(0,entry.indexOf(EQUALS));
    String attrValue=entry.substring(entry.indexOf(EQUALS) + 1);
    attributeValues.add(attrValue);
    attributes.put(attrName,attributeValues);
  }
  clients.put(name,new Client(name,attributes));
  clientsData.put(name,attributes);
}

protected void populateClient ( String clientName , Properties props ) throws InvalidPropertiesFormatException { String name = props . getProperty ( clientName + NAME_SUFFIX ) ; String attrList = props . getProperty ( clientName + ATTRIBUTE_SUFFIX ) ; StringTokenizer st = new StringTokenizer ( attrList , COMMA ) ; Map attributes = new HashMap ( ) ; Set attributeValues = null ; while ( st . hasMoreTokens ( ) ) { attributeValues = new HashSet ( ) ; String entry = st . nextToken ( ) ; String attrName = entry . substring ( 0 , entry . indexOf ( EQUALS ) ) ; String attrValue = entry . substring ( entry . indexOf ( EQUALS ) + 1 ) ; attributeValues . add ( attrValue ) ; attributes . put ( attrName , attributeValues ) ; } clients . put ( name , new Client ( name , attributes ) ) ; clientsData . put ( name , attributes ) ; }
simple utility method that parsed the properties file for the different clients .
