Configuration defaultConfig = parseDefaultConfiguration();
gc = new GlobalConfiguration();
gc.setDefaultConfiguration(defaultConfig);
// there may not be a <global /> element in the config!!
if (globalElement != null) {
globalElement.normalize();
configureAsyncListenerExecutor(getSingleElementInCoreNS("asyncListenerExecutor", globalElement), gc);
configureAsyncSerializationExecutor(getSingleElementInCoreNS("asyncTransportExecutor", globalElement), gc);
configureEvictionScheduledExecutor(getSingleElementInCoreNS("evictionScheduledExecutor", globalElement), gc);
configureReplicationQueueScheduledExecutor(getSingleElementInCoreNS("replicationQueueScheduledExecutor", globalElement), gc);
configureTransport(getSingleElementInCoreNS("transport", globalElement), gc);