Revert "Changed source compliance level to 1.5, and adapted code accordingly."

This reverts commit c96d35dd738b83568eb274879c6d6152c7675181.
Downgraded to java 6.