private void setStackConfig() { if (stackConfig == null) { synchronized (this) { if (stackConfig == null) { //Retrieve the stackConfig using SPIProvider final ClassLoader cl = ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader(); this.stackConfig = SPIProvider.getInstance().getSPI(StackConfigFactory.class, cl).getStackConfig(); } } } }