@Override
    public boolean match(final String rule) {
        return rule.matches("^current(\\|.+)?");
    }
@Test
    public void testMatch() {
        Assertions.assertTrue(generator.match("current"));
        Assertions.assertFalse(generator.match("current|"));
        Assertions.assertTrue(generator.match("current|YYYY-MM-dd"));
    }