profile.setMessage(sd);
return profile;
}
private StaticDef parseStaticProfile(Element elem) throws ProfileException {
StaticDef message = new StaticDef();
message.setMsgType(elem.getAttribute("MsgType"));
message.setEventType(elem.getAttribute("EventType"));
message.setMsgStructID(elem.getAttribute("MsgStructID"));
message.setOrderControl(elem.getAttribute("OrderControl"));
message.setEventDesc(elem.getAttribute("EventDesc"));
message.setIdentifier(elem.getAttribute("identifier"));
message.setRole(elem.getAttribute("role"));
Element md = getFirstElementByTagName("MetaData", elem);
if (md != null)
message.setMetaData(parseMetaData(md));
message.setImpNote(getValueOfFirstElement("ImpNote", elem));
message.setDescription(getValueOfFirstElement("Description", elem));
message.setReference(getValueOfFirstElement("Reference", elem));
parseChildren(message, elem);
return message;
}