public SubProcess getNextSubProcess(State state) {
		if (state == null) return null;
		reSortSubProcesses();
		SubProcess sp = state.getSubProcess();
		if (sp == null
				|| !this.subProcesses.contains(sp)
				|| this.subProcesses.indexOf(sp) >= this.subProcesses.size() - 1) return null;
		return this.subProcesses.get(this.subProcesses.indexOf(sp) + 1);
	}