= ((Assignment)(assignmentsReceivedIterator.next())).getSubsystem();
= ((Assignment)(assignmentsReceivedIterator.next())) .getFunction().getSubsystem();
  private Subsystem getFirstSubsystemOfReceivedAssignments    (PrivilegedSubject grantee) throws ObjectNotFoundException  {    Subsystem firstSubsystem = null;    Set assignmentsReceived = grantee.getAssignmentsReceived(null, null);    Iterator assignmentsReceivedIterator = assignmentsReceived.iterator();    if (assignmentsReceivedIterator.hasNext())    {      firstSubsystem      	= ((Assignment)(assignmentsReceivedIterator.next())).getSubsystem();    }        return firstSubsystem;  }