@Override
 public List<String> getCurrentProcesses() {
   List<String> processList = new ArrayList<String>();
   for (String key : threadFactories.keySet()) {
     for (OseeServerThread thread : getThreadsFromFactory(key)) {
       State state = thread.getState();
       if (!state.equals(State.TERMINATED)) {
         processList.add(thread.getName());
       }
     }
   }
   for (String contexts : oseeHttpServlets.keySet()) {
     InternalOseeHttpServlet servlets = oseeHttpServlets.get(contexts);
     if (servlets.getState().equals(ProcessingStateEnum.BUSY)) {
       processList.add(servlets.getCurrentRequest());
     }
   }
   return processList;
 }
  @Override
  public int getNumberOfActiveThreads() {
    int totalProcesses = 0;
    for (String contexts : oseeHttpServlets.keySet()) {
      InternalOseeHttpServlet servlet = oseeHttpServlets.get(contexts);
      if (servlet.getState().isBusy()) {
        totalProcesses++;
      }
    }

    for (String key : threadFactories.keySet()) {
      for (OseeServerThread thread : getThreadsFromFactory(key)) {
        State state = thread.getState();
        if (State.TERMINATED != state) {
          totalProcesses++;
        }
      }
    }
    return totalProcesses;
  }