Backported to Java 1.6

This was necessary to ensure that I could run the tests for ebeanorm against Java 1.6.