Compatible with JDK 1.6