while (phases.hasNext()) {
OMElement element = (OMElement) phases.next();
String phaseName = element.getAttributeValue(new QName(ATTRIBUTE_NAME));
Deployable d = new Deployable(phaseName);
String after = element.getAttributeValue(new QName(TAG_AFTER));
if (after != null) {
String [] afters = after.split(",");
for (String s : afters) {
d.addPredecessor(s);
}
}
String before = element.getAttributeValue(new QName(TAG_BEFORE));
if (before != null) {
String [] befores = before.split(",");
for (String s : befores) {
d.addSuccessor(s);
}
}
String flowName = element.getAttributeValue(new QName("flow"));
if (flowName == null) {
throw new DeploymentException("Flow can not be null for the phase name " +