*/
public Mediator createSpecificMediator(OMElement elem, Properties properties) {
boolean asynchronousExe = true;
CloneMediator mediator = new CloneMediator();
processAuditStatus(mediator, elem);
OMAttribute id = elem.getAttribute(ID_Q);
if (id != null) {
mediator.setId(id.getAttributeValue());
}
OMAttribute continueParent = elem.getAttribute(ATT_CONTINUE_PARENT);
if (continueParent != null) {
mediator.setContinueParent(JavaUtils.isTrueExplicitly(
continueParent.getAttributeValue()));
}
OMAttribute synchronousExeAttr= elem.getAttribute(SEQUENTIAL_Q);
if (synchronousExeAttr != null && synchronousExeAttr.getAttributeValue().equals("true")) {
asynchronousExe = false;
}
mediator.setSequential(!asynchronousExe);
Iterator targetElements = elem.getChildrenWithName(TARGET_Q);
while (targetElements.hasNext()) {
Target target = TargetFactory.createTarget((OMElement)targetElements.next(), properties);
target.setAsynchronous(asynchronousExe);
mediator.addTarget(target);
}
return mediator;
}