}
return binaryPart;
}
protected static BinaryPart createBinaryPart(String absoluteTarget, String contentType) {
ExternalTarget externalTarget = new ExternalTarget(absoluteTarget);
BinaryPart ret = null;
if (ContentTypes.IMAGE_JPEG.equals(contentType))
ret = new ImageJpegPart(externalTarget);
else if (ContentTypes.IMAGE_PNG.equals(contentType))
ret = new ImagePngPart(externalTarget);