code: public static byte[] newByteArray(byte[] data) {
          if (data == null) {
              throw new IllegalArgumentException("Data you want to copy are backed by null object.");
          }
          byte[] buffer = new byte[data.length];
          System.arraycopy(data, 0, buffer, 0, data.length);
          return buffer;
      }
docs: Copy the provided data
  
  @param data
  @return byte array