class Utils {

    public static byte[] safeCopyOfRange(byte[] data, int from, int size) {
        validateArrayAllegedSize(data, from, size);
        return Arrays.copyOfRange(data, from, from + size);
    }

}