private static InternalDistributedSystem getIDS() { InternalDistributedSystem distributedSystem = InternalDistributedSystem.getAnyInstance(); if (distributedSystem == null) { Locator locator = Locator.getLocator(); if (locator == null) { return null; } return (InternalDistributedSystem) locator.getDistributedSystem(); } else { return distributedSystem; } } }