Backward compability for Java 6