XMLConfigConstants.SYNAPSE_NAMESPACE, "inSequence"));
if (inSequenceKeyAtt != null && !"".equals(inSequenceKeyAtt.getAttributeValue())) {
resource.setInSequenceKey(inSequenceKeyAtt.getAttributeValue());
} else if (inSequenceElt != null) {
SequenceMediatorFactory fac = new SequenceMediatorFactory();
SequenceMediator sequence = fac.createAnonymousSequence(inSequenceElt, new Properties());
resource.setInSequence(sequence);
}
OMAttribute outSequenceKeyAtt = resourceElt.getAttribute(new QName("outSequence"));
OMElement outSequenceElt = resourceElt.getFirstChildWithName(new QName(
XMLConfigConstants.SYNAPSE_NAMESPACE, "outSequence"));
if (outSequenceKeyAtt != null && !"".equals(outSequenceKeyAtt.getAttributeValue())) {
resource.setOutSequenceKey(outSequenceKeyAtt.getAttributeValue());
} else if (outSequenceElt != null) {
SequenceMediatorFactory fac = new SequenceMediatorFactory();
SequenceMediator sequence = fac.createAnonymousSequence(outSequenceElt, new Properties());
resource.setOutSequence(sequence);
}
OMAttribute faultSequenceKeyAtt = resourceElt.getAttribute(new QName("faultSequence"));
OMElement faultSequenceElt = resourceElt.getFirstChildWithName(new QName(
XMLConfigConstants.SYNAPSE_NAMESPACE, "faultSequence"));
if (faultSequenceKeyAtt != null && !"".equals(faultSequenceKeyAtt.getAttributeValue())) {
resource.setFaultSequenceKey(faultSequenceKeyAtt.getAttributeValue());
} else if (faultSequenceElt != null) {
SequenceMediatorFactory fac = new SequenceMediatorFactory();
SequenceMediator sequence = fac.createAnonymousSequence(faultSequenceElt, new Properties());
resource.setFaultSequence(sequence);
}
}