@Override
	public void removeTray(Tray tray) {
		tx.begin();
		for (State state : tray.getStates()) {
			tray.removeState(state);
			em.remove(state);
		}
		em.merge(tray);
		em.remove(tray);
		tx.commit();
	}