adapt web projects to java 5