public static boolean isNormalizedDirectoryPathInsideNormalizedParentDirectory(String parent, String subdirectory) {
        final String normalizedParentPath = FilenameUtils.normalize(parent + File.separator);
        final String normalizedSubDirPath = FilenameUtils.normalize(subdirectory + File.separator);
        return StringUtils.isNotBlank(normalizedParentPath) && StringUtils.isNotBlank(normalizedSubDirPath) && normalizedSubDirPath.startsWith(normalizedParentPath);
    }
@Test
    public void shouldReturnFalseIfDirectoryNameIsSameAsParentDirectoryButNotASubdirectory() throws Exception {
        assertFalse(FilenameUtil.isNormalizedDirectoryPathInsideNormalizedParentDirectory("config", "artifacts/config"));
    }