fixed incompatibility with Java 6 introduced in 0d64eb195781b7b4d4364acf17ab0711d7dee007