copied from jboss
copied from jboss