MatchResult matchPluginTemplate(String ownerTemplate, String template) {
        boolean matches = false;
        String pluginName = null;
        String templateName = template;
        String ownerTemplateName = ownerTemplate;
        if (StringUtils.isNotBlank(ownerTemplate)) {
            Matcher ownerTemplateMatcher = PLUGIN_TEMPLATE_PATTERN.matcher(ownerTemplate);
            if (ownerTemplateMatcher.matches()) {
                matches = true;
                pluginName = ownerTemplateMatcher.group(1);
                ownerTemplateName = ownerTemplateMatcher.group(2);
            }
        }
        Matcher templateMatcher = PLUGIN_TEMPLATE_PATTERN.matcher(template);
        if (templateMatcher.matches()) {
            matches = true;
            pluginName = templateMatcher.group(1);
            templateName = templateMatcher.group(2);
        }
        return new MatchResult(pluginName, ownerTemplateName, templateName, matches);
    }
@Test
    void matchPluginTemplateWhenDoesNotMatch() {
        var result =
            templateResolver.matchPluginTemplate("doc", "modules/layout");
        assertThat(result.matches()).isFalse();
    }