code: public static WsByteBuffer[] expandBufferArray(WsByteBuffer[] oldList, WsByteBuffer[] newBuffers) {
          if (null == oldList && null == newBuffers) {
              // if both are null then just exit
              return null;
          }
  
          int oldLen = (null != oldList ? oldList.length : 0);
          int newLen = (null != newBuffers ? newBuffers.length : 0);
          WsByteBuffer[] bb = new WsByteBuffer[oldLen + newLen];
          if (0 < oldLen) {
              System.arraycopy(oldList, 0, bb, 0, oldLen);
          }
          if (0 < newLen) {
              System.arraycopy(newBuffers, 0, bb, oldLen, newLen);
          }
          return bb;
      }
docs: Expand an existing wsbb[] to include a new wsbb[]
  
  @param oldList
  @param newBuffers
  @return WsByteBuffer[]