code: @SuppressWarnings( "unchecked" )
      private static synchronized void configure(InputStream in) throws ConfigurationException
      {
          if( c_factories == null )
              c_factories = new HashMap<String, StopWatchFactory>();
  
          try
          {
              c_config.load(in);
          }
          catch (IOException e2)
          {
              throw new ConfigurationException(e2);
          }
  
          for( Enumeration<String> e = (Enumeration<String>) c_config.propertyNames(); e.hasMoreElements(); )
          {
              String key = e.nextElement();
  
              String[] components = key.split("\\.");
  
              if( components.length < 2 || !components[0].equals(PROPERTY_PREFIX) ) continue;
  
              String logger = components[1];
  
              StopWatchFactory swf = c_factories.get(logger);
  
              if( swf == null )
              {
                  swf = new StopWatchFactory( instantiateLog(logger) );
              }
  
              //
              //  Call the respective setXXX() methods of the logger
              //  based on the configuration.
              //
              if( components.length > 2 )
              {
                  String setting = components[2];
  
                  String method = "set"+Character.toUpperCase(setting.charAt(0))+setting.substring(1);
  
                  try
                  {
                      SetterUtil.set( swf.getLog(), method, (String)c_config.get(key) );
                  }
                  catch( NoSuchMethodException e1 )
                  {
                      log.warn("An unknown setting {} for logger {}, wasn't able to find {}.{}.  Continuing nevertheless.",
                               new Object[] {setting, logger, logger, method} );
                  }
                  catch (Exception e1)
                  {
                      throw new ConfigurationException(e1);
                  }
              }
  
              c_factories.put(logger, swf);
          }
      }
docs: Load configuration file, try to parse it and do something useful.
  
  @throws ConfigurationException If configuration fails.