private static Map<String,Boolean> readProperties(Properties props,String keyPrefix){
  Map<String,Boolean> filters=new TreeMap<String,Boolean>();
  int counter=0;
  boolean keyFound=true;
  while (keyFound) {
    String property=props.getProperty(keyPrefix + counter);
    if (property != null) {
      int pipePos=property.indexOf(BOOL_SEPARATOR);
      if (pipePos >= 0) {
        String name=property.substring(0,pipePos);
        String enabled=property.substring(pipePos + 1);
        filters.put(name,Boolean.valueOf(enabled));
      }
 else {
        filters.put(property,Boolean.TRUE);
      }
      counter++;
    }
 else {
      keyFound=false;
    }
  }
  return filters;
}

private static Map < String , Boolean > readProperties ( Properties props , String keyPrefix ) { Map < String , Boolean > filters = new TreeMap < String , Boolean > ( ) ; int counter = 0 ; boolean keyFound = true ; while ( keyFound ) { String property = props . getProperty ( keyPrefix + counter ) ; if ( property != null ) { int pipePos = property . indexOf ( BOOL_SEPARATOR ) ; if ( pipePos >= 0 ) { String name = property . substring ( 0 , pipePos ) ; String enabled = property . substring ( pipePos + 1 ) ; filters . put ( name , Boolean . valueOf ( enabled ) ) ; } else { filters . put ( property , Boolean . TRUE ) ; } counter ++ ; } else { keyFound = false ; } } return filters ; }
helper method to read array of strings out of the properties file , using a findbugs style format .
