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);
else if (ContentTypes.IMAGE_GIF.equals(contentType))
ret = new ImageGifPart(externalTarget);
else if (ContentTypes.IMAGE_TIFF.equals(contentType))