fixing bug related to supporting multiple jboss types