code: public static WsByteBuffer[] expandBufferArray(WsByteBuffer[] list, WsByteBuffer buffer) {
          if (null == buffer)
              return list;
          int len = (null != list ? list.length : 0);
          WsByteBuffer[] bb = new WsByteBuffer[len + 1];
          if (0 < len) {
              System.arraycopy(list, 0, bb, 0, len);
          }
          bb[len] = buffer;
          return bb;
      }
docs: Expand an existing list of buffers to include one new buffer, if that
  buffer
  is null then the list is returned as-is.
  
  @param list
  @param buffer
  @return WsByteBuffer[]