code: def _add_process(self, aProcess):
          
  ##        if not isinstance(aProcess, Process):
  ##            if hasattr(aProcess, '__class__'):
  ##                typename = aProcess.__class__.__name__
  ##            else:
  ##                typename = str(type(aProcess))
  ##            msg = "Expected Process, got %s instead" % typename
  ##            raise TypeError(msg)
          dwProcessId = aProcess.dwProcessId
  ##        if dwProcessId in self.__processDict:
  ##            msg = "Process already exists: %d" % dwProcessId
  ##            raise KeyError(msg)
          self.__processDict[dwProcessId] = aProcess
docs: Private method to add a process object to the snapshot.
  
          @type  aProcess: L{Process}
          @param aProcess: Process object.