public void reconcileReferences(boolean deep)
{
if (element != null && element.hasAttribute(SOAPConstants.PARTS_ATTRIBUTE))
// Synchronize 'parts' variable from element's attribute.
{
Message message = getMessage();
if (message == null)
return;
String partNames = element.getAttribute(SOAPConstants.PARTS_ATTRIBUTE);
StringTokenizer parser = new StringTokenizer(partNames, " ");
String partName = null;
Part newPart = null;
getParts().clear();
while (parser.hasMoreTokens())
{
partName = parser.nextToken();
newPart = (message != null) ? (Part)message.getPart(partName) : null;
if (newPart != null)
// Do not use getParts() here since it will return a list of
// implicitly collected parts.
parts.add(newPart);
}