Support for java 7