public boolean isEmbedded() {
        try {
            ClassUtils.forName("org.jivesoftware.openfire.starter.ServerStarter");
            return true;
        }
        catch (Exception ignored) {
            return false;
        }
    }
@return {@code true} if the server is in embedded mode, {@code false} otherwise.
xmppserver/src/main/java/org/jivesoftware/util/WebManager.java