ProcessModel pmodel = _server.getProcessModel(pid);
if (pmodel == null)
throw new ProcessNotFoundException("The process \"" + pid + "\" does not exist.");
for (int aid : aids) {
ActivityModel amodel = pmodel.getChild(aid);
if (amodel != null && amodel.getExtensibilityElements() != null) {
for (Map.Entry<QName, Object> entry : amodel.getExtensibilityElements().entrySet()) {
TActivityExtInfo taei = taeil.addNewActivityExtInfo();
taei.setAiid("" + aid);
Object extValue = entry.getValue();
if (extValue instanceof Element)
taei.getDomNode().appendChild(