refactored to jdk6 compatibility
Merge pull request #2 from lassewesth/jdk6support

refactored to jdk6 compatibility