Fix for java 1.6 compatibility.
Merge pull request #3 from joshuacoles/master

Fix for java 1.6 compatibility. FIXED