Map<String, String> propsOfPath = getPropertiesOfPath(path,
basePaths.get(basePathId));
for (Locale locale : locales) {
for (Locale currentLocale : getLocaleWithParents(locale)) {
try {
fac.addFile(new FileAccessorProperties(propsOfPath,
path.getType(), currentLocale));
} catch (InvalidStateException e) {
throw new RuntimeException("Should never happen", e);
}
}