@Override
  protected synchronized PersistentConfiguration getConfig() {
    if (config == null) {
      String fileName = context.getProperties().get("dataworker.storagePath");
      if (fileName == null) {
        String msg = "dataworker.storagePath is not configured!";
        LOG.error(msg);
        throw new MisconfigurationFormattedException("dataworker.storagePath");
      }
      try {
        config = new PersistentConfiguration(fileName);
      } catch (ConfigurationException e) {
        e.printStackTrace();
      }
    }
    return config;
  }
Returns config instance
@return config instance
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/LocalKeyValueStorage.java