class JBossDetector extends AbstractServerDetector {

    public ServerHandle detect(MBeanServerExecutor pMBeanServerExecutor) {
        ServerHandle handle = checkFromJSR77(pMBeanServerExecutor);
        if (handle == null) {
            handle = checkFor5viaJMX(pMBeanServerExecutor);
            if (handle == null) {
                handle = checkForManagementRootServerViaJMX(pMBeanServerExecutor);
            }
            if (handle == null) {
                handle = checkForWildflySwarm();
            }
            if (handle == null) {
                handle = fallbackForVersion7Check(pMBeanServerExecutor);
            }
        }
        return handle;
    }

}