01: package com.opensymphony.workflow.designer; 02: 03: public class IDGenerator { 04: private int nextId; 05: 06: public int generateId() { 07: return nextId++; 08: } 09: 10: public void checkId(int id) { 11: if (id >= nextId) 12: nextId = id + 1; 13: } 14: }