Format and adjust the projects to adapt Glashfish4 and JDK7