class PluginUtils {

    public static String defaultURI(Service service) {
        var a = service.getClass()
                .getDeclaredAnnotation(RegisterPlugin.class);

        return a == null
                ? null
                : a.defaultURI() == null || "".equals(a.defaultURI())
                ? "/".concat(a.name())
                : a.defaultURI();
    }

}