Fix for deployment check on jboss 7