@Override public Job requestJob() { Job assignJob = null; synchronized (this.lock) { for (int i = 0; i < this.nonSubmitted.size(); i++) { Representation repSrc = ResourceClosetImpl.getInstance() .getResource(this.nonSubmitted.elementAt(i).getResource()) .getRepresentation(this.nonSubmitted.elementAt(i).getRepresentationSource()); if (repSrc.isReady()) { assignJob = this.nonSubmitted.elementAt(i); this.levelUp(assignJob); return assignJob; } } } return assignJob; }