code: public static Object readObject(ChannelBuffer buffer, int length)
  	{
  		ChannelBuffer objBuffer = buffer.readSlice(length);
  		Object obj;
  		try
  		{
  			obj = OBJECT_DECODER.decode(objBuffer);
  		}
  		catch (Exception e)
  		{
  			throw new RuntimeException(e);
  		}
  		return obj;
  	}
docs: Read an object from a channel buffer with the specified length. It sets
  the reader index of the buffer to current reader index + 2(length bytes)
  + actual length.
  
  @param buffer
  The Netty buffer containing the Object.
  @param length
  The number of bytes in the Object.
  @return Returns the read object.