public static DistributedSystemConfig defineDistributedSystem(DistributedSystem system,
      String remoteCommand) throws AdminException {

    InternalDistributedSystem internal = (InternalDistributedSystem) system;
    if (remoteCommand == null) {
      remoteCommand = DistributedSystemConfig.DEFAULT_REMOTE_COMMAND;
    }

    DistributedSystemConfigImpl impl =
        new DistributedSystemConfigImpl(internal.getConfig(), remoteCommand);
    return impl;
  }
Defines a distributed system configuration for administering the distributed system to which
this VM is currently connected. The <code>DistributedSystem</code> is used to configure the
discovery mechanism (multicast or locators), bind address, SSL attributes, as well as the
logger of the <code>DistributedSystemConfig</code>. Note that the distributed system will not
be able to be administered until the {@link AdminDistributedSystem#connect connect} method is
invoked.

@param system A connection to the distributed system
@param remoteCommand The shell command that is used to launch processes that run on remote
       machines. If <code>null</code>, then the
       {@linkplain DistributedSystemConfig#DEFAULT_REMOTE_COMMAND default} will be used.
@return a distributed system configuration for administering the distributed system to which
        this VM is currently connected
@throws AdminException is an exception is encountered

@since GemFire 4.0
geode-core/src/main/java/org/apache/geode/admin/AdminDistributedSystemFactory.java