public static byte[] duplicate(final byte[] src){
  final byte[] result=new byte[src.length];
  System.arraycopy(src,0,result,0,src.length);
  return result;
}

public static byte [ ] duplicate ( final byte [ ] src ) { final byte [ ] result = new byte [ src . length ] ; System . arraycopy ( src , 0 , result , 0 , src . length ) ; return result ; }
creates duplicate of given array
