code: public static void ensurePropertyNotConfigured(HazelcastProperties properties, HazelcastProperty hazelcastProperty)
              throws ConfigurationException {
          if (properties.containsKey(hazelcastProperty)) {
              throw new ConfigurationException("Service start failed. The legacy property " + hazelcastProperty.getName()
                      + " is provided together with new Config object. "
                      + "Remove the property from your configuration to fix this issue.");
          }
      }
docs: Throws {@link ConfigurationException} if given group property is defined within Hazelcast properties.
  
  @param properties Group properties
  @param hazelcastProperty property to be checked
  @throws ConfigurationException