class ContentConfig {
  public static final String CONFIG_NAME = "content";
  private static final String ENABLED = "enabled";
  private static final String CONTENT_TYPE = "contentType";
  private Map<String, Object> mappedConfig;
  private final Config config;

  boolean enabled;
  String contentType;

  private ContentConfig(String configName) {
    config = Config.getInstance();
    mappedConfig = config.getJsonMapConfigNoCache(configName);
    setConfigData();
  }
  private ContentConfig() {
    this(CONFIG_NAME);
  }

  public static ContentConfig load(String configName) {
    return new ContentConfig(configName);
  }

  public static ContentConfig load() {
    return new ContentConfig();
  }

  public void reload() {
    mappedConfig = config.getJsonMapConfigNoCache(CONFIG_NAME);
    setConfigData();
  }

  public void reload(String configName) {
    mappedConfig = config.getJsonMapConfigNoCache(configName);
    setConfigData();
  }

  public boolean isEnabled() {
    return enabled;
  }

  public void setEnabled(boolean enabled) {
    this.enabled = enabled;
  }

  public String getContentType() {
    return contentType;
  }

  public void setContentType(String contentType) {
    this.contentType = contentType;
  }

  public Map<String, Object> getMappedConfig() {
    return mappedConfig;
  }

  Config getConfig() {
    return config;
  }

  private void setConfigData() {<FILL_FUNCTION_BODY>}
}

    if(getMappedConfig() != null) {
      Object object = getMappedConfig().get(ENABLED);
      if(object != null) enabled = Config.loadBooleanValue(ENABLED, object);
      object = getMappedConfig().get(CONTENT_TYPE);
      if(object != null) contentType = (String)object;
    }
  
<no_super_class>