Make use of Java 7's ARM.