[JBOSGI-642] Consolidate attachments API