public boolean checkTransitionId (Transition newEl,String newId) {
WorkflowProcess proc = XMLUtil.getWorkflowProcess(newEl);
Transitions trans = proc.getTransitions();
List elsWithId=getElementsForId(trans, newId);
ActivitySets actSets = proc.getActivitySets();
for(int y = 0; y < actSets.size(); y++) {
ActivitySet actSet = (ActivitySet)actSets.get(y);
trans = actSet.getTransitions();
elsWithId.addAll(getElementsForId(trans, newId));
}
if (elsWithId.size()==0 || (elsWithId.size()==1 && elsWithId.contains(newEl))) {
return true;