code: public WebSocketScopeManager getManager(String path) {
          log.debug("getManager: {}", path);
          // determine what the app scope name is
          String[] parts = path.split("\\/");
          if (log.isTraceEnabled()) {
              log.trace("Path parts: {}", Arrays.toString(parts));
          }
          if (parts.length > 1) {
              // skip default in a path if it exists in slot #1
              String name = !"default".equals(parts[1]) ? parts[1] : ((parts.length >= 3) ? parts[2] : parts[1]);
              if (log.isDebugEnabled()) {
                  log.debug("Managers: {}", managerMap.entrySet());
              }
              for (Entry<IScope, WebSocketScopeManager> entry : managerMap.entrySet()) {
                  IScope appScope = entry.getKey();
                  if (appScope.getName().equals(name)) {
                      log.debug("Application scope name matches path: {}", name);
                      return entry.getValue();
                  } else if (log.isTraceEnabled()) {
                      log.trace("Application scope name: {} didnt match path: {}", appScope.getName(), name);
                  }
              }
          }
          return null;
      }
docs: Returns a WebSocketScopeManager for a given path.
  
  @param path
  @return WebSocketScopeManager if registered for the given path and null otherwise