remove dependency on specific implementation class
Attachment class moved to util module