Fixed java 6 build issue.