public void initializeProcessDefinition(String clientId,
TDefinitions definition) {
for (Iterator<JAXBElement<? extends TRootElement>> iterator = definition
.getRootElement().iterator(); iterator.hasNext();) {
TRootElement rootElement = iterator.next().getValue();
TProcess process = null;
if (rootElement.getClass().equals(TProcess.class)) {
process = (TProcess) rootElement;
this.initializeProcess(clientId, process);
}
}
}