You'd need to reverse-engineer the built java files, which probably isn't so easy and that a company will do this
It was ridiculously easy assuming you know how a java decompiler works. One JAR needed to be patched and re-compiled, which is a trivial process if you know how classpaths work.
There are plenty of libraries out there to facilitate this such as Javassist or Apache BCEL, and lots of legitimate uses (AOP, instrumentation, etc).