public boolean isPathValid(String path) {
        return path == null || XmlUtils.matchUsingRegex(PATH_PATTERN_REGEX, path);
    }
@Test
    public void shouldEnsurePathIsRelative() {
        assertThat(filePathTypeValidator.isPathValid(".."), is(false));
        assertThat(filePathTypeValidator.isPathValid("../a"), is(false));
        assertThat(filePathTypeValidator.isPathValid(" "), is(false));
        assertThat(filePathTypeValidator.isPathValid("./a"), is(true));
        assertThat(filePathTypeValidator.isPathValid(". "), is(false));
        assertThat(filePathTypeValidator.isPathValid(" ."), is(false));
        assertThat(filePathTypeValidator.isPathValid("abc"), is(true));
    }