Function function = subsystem.getFunction(functionId);
Function function = Common.getFunction(subsystem, functionId);
  private void correlateGranteeAndFunction    (int subjectIndex,     int functionIndex)  throws ObjectNotFoundException  {    Subject subject      = signet.getSubject          (Signet.DEFAULT_SUBJECT_TYPE_ID,           Common.makeSubjectId(subjectIndex));      PrivilegedSubject pSubject = signet.getPrivilegedSubject(subject);        String functionId = fixtures.makeFunctionId(functionIndex);    Subsystem subsystem = signet.getSubsystem(Constants.SUBSYSTEM_ID);    Function function = subsystem.getFunction(functionId);        // Let's see if this PrivilegedSubject has at least one Assignment for    // the specified Function.    Assignment matchingAssignment = null;    Set assignments = pSubject.getAssignmentsReceived();    Iterator assignmentsIterator = assignments.iterator();    while (assignmentsIterator.hasNext())    {      Assignment assignment = (Assignment)(assignmentsIterator.next());      if (assignment.getFunction().equals(function))      {        matchingAssignment = assignment;      }    }        assertNotNull(matchingAssignment);  }