@Override
    public Path getConfigDirectory() {
        // Grand unified conf directory!
        String confDir = System.getProperty("apiman.config.dir");
        if (confDir != null) {
            return Paths.get(confDir);
        }

        // If that wasn't set, then check to see if we're running in wildfly/eap
        confDir = System.getProperty("jboss.server.config.dir");
        if (confDir != null) {
            return Paths.get(confDir);
        }

        // If that didn't work, try to locate a tomcat data directory
        confDir = System.getProperty("catalina.home");
        if (confDir != null) {
            return Paths.get(confDir, "conf");
        }
        throw new IllegalStateException("No config directory has been set. Please set apiman.config.dir=<data dir>");
    }
Return the standard Apiman config directory.

Following precedence is used:
<ul>
    <li><code>${apiman.config.dir}</code></li>
    <li><code>${jboss.server.config.dir}</code></li>
    <li><code>${catalina.home}/conf</code></li>
</ul>
manager/ui/war/src/main/java/io/apiman/manager/ui/server/UIConfig.java