class ThorntailV2HealthCheckEnricher extends AbstractHealthCheckEnricher {

    protected int getPort() {
        final Properties properties = ThorntailUtil.getThorntailProperties(getContext().getProjectClassLoaders().getCompileClassLoader());
        properties.putAll(System.getProperties());
        if (properties.containsKey("thorntail.http.port")) {
            return Integer.parseInt((String) properties.get("thorntail.http.port"));
        }

        return Configs.asInt(getConfig(Config.port));
    }

    public  ThorntailV2HealthCheckEnricher(MavenEnricherContext buildContext);

}