public Response serviceRequest (Command cmd, byte[]... args)
throws RedisException
{
if(!isConnected()) throw new NotConnectedException ("Not connected!");
Request request = null;
Response response = null;
ResponseStatus status = null;
Protocol protocol = Assert.notNull(getProtocolHandler(), "thread protocol handler", ProviderException.class);
try {
// 1 - Request
// Log.log("RedisConnection - requesting ..." + cmd.code);
request = Assert.notNull(protocol.createRequest (cmd, args), "request object from handler", ProviderException.class);
request.write(super.getOutputStream());
// 2 - response
// Log.log("RedisConnection - read response ..." + cmd.code);
response = Assert.notNull(protocol.createResponse(cmd), "response object from handler", ProviderException.class);
response.read(super.getInputStream());