}
public RequestHandler getRequestHandler(RequestFormatType type) {
switch(type) {
case VOLDEMORT_V0:
return new VoldemortNativeRequestHandler(new ErrorCodeMapper(), repository, 0);
case VOLDEMORT_V1:
return new VoldemortNativeRequestHandler(new ErrorCodeMapper(), repository, 1);
case VOLDEMORT_V2:
return new VoldemortNativeRequestHandler(new ErrorCodeMapper(), repository, 2);
case VOLDEMORT_V3:
return new VoldemortNativeRequestHandler(new ErrorCodeMapper(), repository, 3);
case PROTOCOL_BUFFERS:
return new ProtoBuffRequestHandler(new ErrorCodeMapper(), repository);
case ADMIN_PROTOCOL_BUFFERS:
return new AdminServiceRequestHandler(new ErrorCodeMapper(),
storage,