Backward compatibility with Java 6