/** * Method to create the specific client to be used * @param clientType * @param credentials * @return */ public AmazonDynamoDB getClient(String clientType, AWSCredentials credentials){ if (clientType.equals("sync")) return new AmazonDynamoDBClient(credentials); if (clientType.equals("async")) return new AmazonDynamoDBAsyncClient(credentials); return null; }