protected void callForProposals() {		

		for (Task t : leftOvers) {
			for (YellowPageCapsule yCapsule : yellowPagedCapsules) {
				if (t.getRequiredCapability() == yCapsule.getTask().getRequiredCapability()) {
					for (String agentName : yCapsule.getCandidates()) {
						TaskCapsule taskCapsule = new TaskCapsule(t);
						
						ACLMessage taskCapsuleMsg = new ACLMessage(ACLMessage.CFP);
						taskCapsuleMsg.setProtocol(Constants.STAGE2);
						taskCapsuleMsg.addReceiver(new AID(agentName, AID.ISLOCALNAME));
						try {
							taskCapsuleMsg.setContentObject((Serializable) taskCapsule);
						} catch (IOException e) {}
						
						send(taskCapsuleMsg);
					}
					String toPrint = "AP " + ((int)myData.getId()+1) + ": cfp for " + t.toString();
					System.out.println(toPrint);
					break;
				}
			}
		}
	}