private void endRemoteCommand() {
    String remoteCommand = popString();
    Object top = stack.peek();
    Assert.assertTrue(top != null);

    if (top instanceof DistributedSystemConfig) {
      ((DistributedSystemConfig) top).setRemoteCommand(remoteCommand);

    } else if (top instanceof ManagedEntityConfig) {
      ((ManagedEntityConfig) top).setRemoteCommand(remoteCommand);

    } else {
      String s = "Did not expect a " + top.getClass().getName() + " on top of the stack";
      Assert.assertTrue(false, s);
    }
  }
Ends a <code>remote-command</code> element. Pop the command off the top of the stack and set it
on the <code>DistributedSystemConfig</code> or it might be a <code>ManagedEntityConfig</code>
on top of the stack.
geode-core/src/main/java/org/apache/geode/admin/internal/ManagedEntityConfigXmlParser.java