public static PropertiesAccessor getInstance(IApplicationConfig cfg) throws IOException, AsterixException { PropertiesAccessor accessor = instances.get(cfg); if (accessor == null) { accessor = new PropertiesAccessor(cfg); if (instances.putIfAbsent(cfg, accessor) != null) { return instances.get(cfg); } } return accessor; }