Adapted deploy for JBoss environment