/**
  * Adds a process instance to the set represented by this contributor instance.
  *
  * @param instance The new process instance to be added.
  */
 public void addInstance(ProcessInstance pi) {
   if (!instances.contains(pi)) {
     instances.add(pi);
   }
 }