code: public boolean connect(IScope newScope, Object[] params) {
          if (log.isDebugEnabled()) {
              log.debug("Connect Params: {}", params);
              if (params != null) {
                  for (Object e : params) {
                      log.debug("Param: {}", e);
                  }
              }
          }
          scope = (Scope) newScope;
          return scope.connect(this, params);
      }
docs: Connect to another scope on server with given parameters
  
  @param newScope
  New scope
  @param params
  Parameters to connect with
  @return true on success, false otherwise