code: public Object doRemoteCommand(String strCommand, Map<String, Object> properties)
      {
          if (SET_DEFAULT_COMMAND.equalsIgnoreCase(strCommand))
              if (properties != null)
                  if (properties.get(DBConstants.SYSTEM_NAME) != null)
          {
              if (this.getTask() != null)
              if (this.getTask().getApplication() instanceof BaseApplication)
              if (((BaseApplication)this.getTask().getApplication()).getEnvironment() != null)
              {
                  String systemName = properties.get(DBConstants.SYSTEM_NAME).toString();
                  Environment env = ((BaseApplication)this.getTask().getApplication()).getEnvironment();
                  properties.put(DBConstants.SYSTEM_NAME, "base");
                  BaseApplication app = new MainApplication(env, properties, null);
                  try {
                      Task task = new AutoTask(app, null, properties);
                      RecordOwner recordOwner = new BaseProcess(task, null, properties);
                      Menus menus = new Menus(recordOwner);
                      menus.setKeyArea(Menus.CODE_KEY);
                      menus.getField(Menus.CODE).setString(ResourceConstants.DEFAULT_RESOURCE);
                      if (menus.seek(null))
                          menus.edit();
                      else
                          menus.addNew();
                      menus.getField(Menus.CODE).setString(ResourceConstants.DEFAULT_RESOURCE);
                      ((PropertiesField)menus.getField(Menus.PARAMS)).setProperty(DBConstants.SYSTEM_NAME, systemName);
                      if (menus.getEditMode() == DBConstants.EDIT_ADD)
                          menus.add();
                      else
                          menus.set();
                  } catch (DBException e) {
                      e.printStackTrace();
                  } finally {
                      app.free();
                  }
                  env.getDefaultApplication().getSystemRecordOwner().setProperty(DBConstants.DEFAULT_SYSTEM_NAME, systemName);
                  return Boolean.TRUE;    // Success
              }
          }
          return super.doRemoteCommand(strCommand, properties);
      }
docs: Do a remote command.
  @param strCommand The command
  @param properties The properties for the command
  @return The return value or Boolean.FALSE if not handled.