public class PriorityExecutorSerializer {
public static OMElement serialize(OMElement parent,
PriorityExecutor executor, String namespace) {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace nullNS = fac.createOMNamespace("", "");
OMElement executorElement = createElement(ExecutorConstants.PRIORITY_EXECUTOR, namespace);
if (executor.getName() != null) {
executorElement.addAttribute(fac.createOMAttribute(ExecutorConstants.NAME,
nullNS, executor.getName()));