Added missing method to support jdk 1.7.0_60.

I believe there is another pull request on this. But it has whitespace problems. 

This is needed to make it compile on the latests JDK7.