Refactoring interactions with DynamoDBMapper and AmazonDynamoDB classes into DynamoDBTemplate