public boolean isLastState(State state) {
		if (state == null) return false;
		reSortSubProcesses();
		SubProcess sp = state.getSubProcess();
		if (sp == null || !this.subProcesses.contains(sp)) return false;

		if (this.subProcesses.indexOf(sp) == this.subProcesses.size() - 1) return true;
		return false;
	}