code: public static Object readObject(ChannelBuffer buffer)
  	{
  		Object readObj = null;
  		if (null != buffer && buffer.readableBytes() > 2)
  		{
  			int length = buffer.readUnsignedShort();
  			readObj = readObject(buffer, length);
  		}
  		return readObj;
  	}
docs: This method will first read an unsigned short to find the length of the
  object and then read the actual object based on the length. It sets the
  reader index of the buffer to current reader index + 2(length bytes) +
  actual length.
  
  @param buffer
  The Netty buffer containing at least one unsigned short
  followed by an Object of that length.
  @return Returns the String or throws {@link IndexOutOfBoundsException} if
  the length is greater than expected.