class MultipartBody {

    public Attachment getAttachment(String contentId) {
        for (Attachment a : atts) {
            if (contentId.equalsIgnoreCase(a.getContentId())) {
                return a;
            }
            ContentDisposition cd = a.getContentDisposition();
            if (cd != null && contentId.equals(cd.getParameter("name"))) {
                return a;
            }
        }
        return null;
    }

    public  MultipartBody(Attachment att);
    public  MultipartBody(List<Attachment> atts);
    public  MultipartBody(List<Attachment> atts, boolean outbound);
    public  MultipartBody(boolean outbound);
    public  MultipartBody(List<Attachment> atts, MediaType mt, boolean outbound);

}