Java 6 compability