Fix for jboss6