title: Create a ByteBuf in Netty 4.0
body: <p>Two simple questions, which I am not able to solve by reading the documentation:</p>
  
  <ol>
  <li>I have a <code>byte[]</code> 
  
  <ul>
  <li>How can i convert it to a <code>ByteBuf</code>?</li>
  </ul></li>
  <li>I have a NIO <code>ByteBuffer</code>
  
  <ul>
  <li>How can i convert it to a <code>ByteBuf</code>?</li>
  </ul></li>
  </ol>