code: public synchronized static ServiceFactory getInstance(Class<?> aClass, String configurationPath)
        {
           if(configurationPath == null)
           {
              configurationPath = "";   
           } 
           
           if (instances.get(configurationPath) == null)
           {
              instances.put(configurationPath, createServiceFactory(aClass,configurationPath));
           }         
           
           return (ServiceFactory)instances.get(configurationPath);
        }
docs: Singleton factory method
  @param aClass the class implements
  @param configurationPath the path to the configuration details
  @return a single instance of the ServiceFactory object
  for the JVM