private static void buildManagementCenterConfig(final BaseHazelcastProperties hz, final Config config) {
        val managementCenter = new ManagementCenterConfig();
        LOGGER.trace("Enables management center scripting: [{}]", hz.getCore().isEnableManagementCenterScripting());
        managementCenter.setScriptingEnabled(hz.getCore().isEnableManagementCenterScripting());
        config.setManagementCenterConfig(managementCenter);
    }
Build config.

@param hz the hz
@return the config
support/cas-server-support-hazelcast-core/src/main/java/org/apereo/cas/hz/HazelcastConfigurationFactory.java