Element requiredEnvironmentElement = (Element)i.next();
String name = requiredEnvironmentElement.getAttributeValue("name");
String storeName = requiredEnvironmentElement.getAttributeValue("store");
int store = StoreHelper.getStoreByName(storeName);
String description = requiredEnvironmentElement.getAttributeValue("description");
RequiredEnvironmentDescriptor environmentDescriptor;
if ( description != null ) {
environmentDescriptor = new RequiredEnvironmentDescriptor(name, store, new ParameterMessage(description), null);
} else {
environmentDescriptor = new RequiredEnvironmentDescriptor(name, store, new ParameterMessage(ParameterMessage.NO_MESSAGE_AVAILABLE, new String[] {name}), null);
}
requiredEnvironment.add(environmentDescriptor);
Element valueDescriptorElement = (Element)requiredEnvironmentElement.getChildren().iterator().next();
ValueDescriptor valueDescriptor = ValueFactoryManager.getInstance().loadValueDescriptor(valueDescriptorElement);
environmentDescriptor.setValueDescriptor(valueDescriptor);
}
requiredEnvironmentDescriptors = (RequiredEnvironmentDescriptor [])requiredEnvironment.toArray(new RequiredEnvironmentDescriptor[requiredEnvironment.size()]);
List stepElements = XPath.newInstance("/process/step").selectNodes(rootElement);
for ( Iterator i = stepElements.iterator(); i.hasNext(); ) {
Element stepElement = (Element)i.next();