public Map<String, Object> toMap() { Map<String, Object> result = mapSupplier.get(); result.put(VERSION, getVersion()); putIfNotNull(result, FLOW_CONTROLLER_PROPS_KEY, flowControllerProperties); putIfNotNull(result, CORE_PROPS_KEY, coreProperties); putIfNotNull(result, FLOWFILE_REPO_KEY, flowfileRepositoryProperties); putIfNotNull(result, CONTENT_REPO_KEY, contentRepositoryProperties); putIfNotNull(result, PROVENANCE_REPO_KEY, provenanceRepositorySchema); putIfNotNull(result, COMPONENT_STATUS_REPO_KEY, componentStatusRepositoryProperties); putIfNotNull(result, SECURITY_PROPS_KEY, securityProperties); result.putAll(processGroupSchema.toMap()); putIfNotNull(result, PROVENANCE_REPORTING_KEY, provenanceReportingProperties); result.put(NIFI_PROPERTIES_OVERRIDES_KEY, nifiPropertiesOverrides); return result; }