Wrapper for Java 1.7