Refactoring of the code to follow jboss ide config.