public Activity find(long id) throws InstanceNotFoundException {
		Activity a = null;
		try {
			a = activities.get((int) id);
		} catch (ArrayIndexOutOfBoundsException e) {
			throw new InstanceNotFoundException(id, "Activity");
		}
		return a;
	}