Support for java 5