// Operations
case QUERY:
return new QueryResultMarshaller().marshall(query(parser.getData(QueryRequest.class, QueryRequestJsonUnmarshaller.getInstance())));
case SCAN:
return new ScanResultMarshaller().marshall(scan(parser.getData(ScanRequest.class, ScanRequestJsonUnmarshaller.getInstance())));
default:
String logMessage = "The Request Type '" + parser.getType() + "' does not exist.";
logger.warn(logMessage);
throw new AmazonServiceException(logMessage);
}