Changing insert method to use if (a instanceof
Attachment.IMPLIMENTATION) instead of using constants borrowed from
TransactionType.java. This is better form and less likely to break.