Needed to run in Jboss.