public static Optional<String> getVersion(final String ruleName, final String rulePath) {
        Pattern pattern = Pattern.compile(getVersionsNode(ruleName) + "/(\\d+)$", Pattern.CASE_INSENSITIVE);
        Matcher matcher = pattern.matcher(rulePath);
        return matcher.find() ? Optional.of(matcher.group(1)) : Optional.empty();
    }
@Test
    void assertGetVersion() {
        Optional<String> actual = GlobalNodePath.getVersion("transaction", "/rules/transaction/versions/0");
        assertTrue(actual.isPresent());
        assertThat(actual.get(), is("0"));
    }