only java-5 is required - removed depenency on some java-7 functionality