byte[] (byte[] newBytes) { if (!containsSubArray(newBytes, timeStampFieldStartBytes)) { return null; } final boolean[] changed = new boolean[]{false}; final ClassWriter writer = new ClassWriter(0); new ClassReader(newBytes).accept(new TimestampFieldRemover(writer, changed), 0); if (changed[0]) { return writer.toByteArray(); } return null; }