public static byte[] copyOfBytes(final byte[] bytes){
  return Arrays.copyOf(bytes,bytes.length);
}

public static byte [ ] copyOfBytes ( final byte [ ] bytes ) { return Arrays . copyOf ( bytes , bytes . length ) ; }
returns a copy of the provided byte array .
