docs: public RemoteTask getNewRemoteTask(Map<String,Object> properties)
      {
          try   {
              if (m_app != null)
              {   // Make sure remote server has same db properties, etc.
                  Map<String,Object> appProperties = m_app.getProperties();
                  properties = Utility.copyAppProperties(properties, appProperties);
              }
              Application app = new MainApplication(((BaseApplication)m_app).getEnvironment(), properties, null);
              RemoteTask remoteServer = new TaskSession(app);
              ((TaskSession)remoteServer).setProperties(properties);
              return remoteServer;
          } catch (Exception ex) {
              ex.printStackTrace();
              return null;
          }
      }