code: public ChannelBuffer convertBAOSToChannelBuffer(ByteArrayOutputStream baos)
  	{
  		if (null == baos)
  			return null;
  		
  		return wrappedBuffer(baos.toByteArray());
  	}
docs: Utility method to convert a byte array output stream object to a Netty
  channel buffer. This method will created a "wrapped" buffer which will
  not do any copy.
  
  @param baos
  The byte array output stream to convert.
  @return Returns the ChannelBuffer object or null if input is null.