@Override
	public void addState(SubProcess subProcess, State state) {
		state.setSubProcess(subProcess);
		tx.begin();
		if (em.contains(state)) em.merge(state);
		else em.persist(state);
		tx.commit();
	}