Adpated to run in eclilpse luna plus wildfly.