base/common/src/main/com/thesett/common/properties/DefaultPropertyReader.java
public static synchronized Properties getProperties(String resourceName)
    {
        /*log.fine("public static synchronized Properties getProperties(String resourceName): called");*/
        /*log.fine("resourceName = " + resourceName);*/

        // Try to find an already created singleton property reader for the resource
        PropertyReaderBase propertyReader = (PropertyReaderBase) propertyReaders.get(resourceName);

        if (propertyReader != null)
        {
            /*log.fine("found property reader in the cache for resource: " + resourceName);*/

            return propertyReader.getProperties();
        }

        /*log.fine("did not find property reader in the cache for resource: " + resourceName);*/

        // There is not already a singleton for the named resource so create a new one
        propertyReader = new DefaultPropertyReader(resourceName);

        // Keep the newly created singleton for next time
        propertyReaders.put(resourceName, propertyReader);

        return propertyReader.getProperties();
    }
public static synchronized Properties getProperties(String resourceName)
    {
        /*log.fine("public static synchronized Properties getProperties(String resourceName): called");*/
        /*log.fine("resourceName = " + resourceName);*/

        // Try to find an already created singleton property reader for the resource
        PropertyReaderBase propertyReader = (PropertyReaderBase) propertyReaders.get(resourceName);

        if (propertyReader != null)
        {
            /*log.fine("found property reader in the cache for resource: " + resourceName);*/

            return propertyReader.getProperties();
        }

        /*log.fine("did not find property reader in the cache for resource: " + resourceName);*/

        // There is not already a singleton for the named resource so create a new one
        propertyReader = new DefaultPropertyReader(resourceName);

        // Keep the newly created singleton for next time
        propertyReaders.put(resourceName, propertyReader);

        return propertyReader.getProperties();
    }
Static factory method that locates an existing instance or creates a new property reader for a named resource.

@param  resourceName The name of the property file resource.

@return The properties found under that resource name.