First version with the initial configuration. Tested on Jboss 7.1.3