* @param newPart new part to add
* @returns Part old attachment with the same Content-ID, or null.
*/
public Part addAttachmentPart(Part newPart) throws org.apache.axis.AxisFault{
mergeinAttachments();
Part oldPart=(Part)attachments.put(newPart.getContentId(),newPart);
if(oldPart!=null){
orderedAttachments.remove(oldPart);
attachments.remove(oldPart.getContentLocation());
}
orderedAttachments.add(newPart);
if(newPart.getContentLocation()!=null){
attachments.put(newPart.getContentLocation(),newPart);
}