Adding a getAttachment method which work with a simple attachment name