Do not use Java 1.6 API
Merge pull request #4 from dirk-olmes/0.9.x_jdk5

Do not use Java 1.6 API