Obtain the DataHandler from the part.
if (null == part) {
throw new AxisFault(Messages.getMessage("gotNullPart"));
}
if (!(part instanceof AttachmentPart)) {
throw new AxisFault(
Messages.getMessage(
"unsupportedAttach", part.getClass().getName(),
AttachmentPart.class.getName()));
}
return ((AttachmentPart) part).getActivationDataHandler();