int partId = key.intValue();
if (isMultiPart(partId)) {
for (Iterator it=getMessageParts(partId);it.hasNext();) {
IOMRMPart rmPart = (IOMRMPart) it.next();
rmPart.toSOAPEnvelope(envelope);
}
} else {
IOMRMPart rmPart = (IOMRMPart) rmMessageParts.get(key);
rmPart.toSOAPEnvelope(envelope);
}