@Override
public byte[] getAttachmentAsByteArray(String cid) {
Attachment a = attachments.get(stripScheme(cid));
if(a==null)
throw new WebServiceException(EncodingMessages.NO_SUCH_CONTENT_ID(cid));
return a.asByteArray();
}
/**
* The CID reference has 'cid:' prefix, so get rid of it.
*/