	public void updateMissingPlacements() {
		System.out.println("[ContractSchoolPlacementUpdate]: Beginning updating applications...");
		System.out.println("-------------------------------------------------------------------");
		try {
			Collection applications = getChildCareApplicationHome().findApplicationsWithoutPlacing();
			int size = applications.size();
			int counter = 1;
			Iterator iter = applications.iterator();
			while (iter.hasNext()) {
				ChildCareApplication application = (ChildCareApplication) iter.next();
				System.out.println("[ContractSchoolPlacementUpdate]: Updating application " + counter + " of " + size + " (ID=" + application.getPrimaryKey() + ")");
				IWTimestamp fromDate = new IWTimestamp(application.getFromDate());
				Timestamp endDate = null;
				if (application.getRejectionDate() != null)
					endDate = new IWTimestamp(application.getRejectionDate()).getTimestamp();
				try {
					Collection contracts = getChildCareContractHome().findByApplication(((Integer)application.getPrimaryKey()).intValue());
					SchoolClass group = null;
					try {
						group = getSchoolBusiness().getSchoolClassHome().findOneBySchool(application.getProviderId());
					}
					catch (FinderException fe) {
						System.out.println("Found no group for provider = " + application.getProviderId());
						group = null;
					}
					if (group != null) {
						SchoolClassMember member = getSchoolBusiness().storeSchoolClassMember(application.getChildId(), ((Integer) group.getPrimaryKey()).intValue(), fromDate.getTimestamp(), endDate, -1, null);
						Iterator iterator = contracts.iterator();
						while (iterator.hasNext()) {
							ChildCareContract contract = (ChildCareContract) iterator.next();
							contract.setSchoolClassMember(member);
							contract.store();
						}
					}
				}
				catch (FinderException fe) {
					fe.printStackTrace();
				}
			}
		}
		catch (RemoteException e) {
			e.printStackTrace();
		}
		catch (FinderException e) {
			System.out.println("[ContractSchoolPlacementUpdate]: No applications found with missing placements.");
		}
		System.out.println("-------------------------------------------------------------------");
		System.out.println("[ContractSchoolPlacementUpdate]: Done updating applications........");
	}

	public void updateMissingPlacements() {
		System.out.println("[ContractSchoolPlacementUpdate]: Beginning updating applications...");
		System.out.println("-------------------------------------------------------------------");
		try {
			Collection applications = getChildCareApplicationHome().findApplicationsWithoutPlacing();
			int size = applications.size();
			int counter = 1;
			Iterator iter = applications.iterator();
			while (iter.hasNext()) {
				ChildCareApplication application = (ChildCareApplication) iter.next();
				System.out.println("[ContractSchoolPlacementUpdate]: Updating application " + counter + " of " + size + " (ID=" + application.getPrimaryKey() + ")");
				IWTimestamp fromDate = new IWTimestamp(application.getFromDate());
				Timestamp endDate = null;
				if (application.getRejectionDate() != null)
					endDate = new IWTimestamp(application.getRejectionDate()).getTimestamp();
				try {
					Collection contracts = getChildCareContractHome().findByApplication(((Integer)application.getPrimaryKey()).intValue());
					SchoolClass group = null;
					try {
						group = getSchoolBusiness().getSchoolClassHome().findOneBySchool(application.getProviderId());
					}
					catch (FinderException fe) {
						System.out.println("Found no group for provider = " + application.getProviderId());
						group = null;
					}
					if (group != null) {
						SchoolClassMember member = getSchoolBusiness().storeSchoolClassMember(application.getChildId(), ((Integer) group.getPrimaryKey()).intValue(), -1, group.getSchoolTypeId(), fromDate.getTimestamp(), endDate, -1, null);
						Iterator iterator = contracts.iterator();
						while (iterator.hasNext()) {
							ChildCareContract contract = (ChildCareContract) iterator.next();
							contract.setSchoolClassMember(member);
							contract.store();
						}
					}
				}
				catch (FinderException fe) {
					fe.printStackTrace();
				}
			}
		}
		catch (RemoteException e) {
			e.printStackTrace();
		}
		catch (FinderException e) {
			System.out.println("[ContractSchoolPlacementUpdate]: No applications found with missing placements.");
		}
		System.out.println("-------------------------------------------------------------------");
		System.out.println("[ContractSchoolPlacementUpdate]: Done updating applications........");
	}
