DomainTypeAdministrationConfiguration domainTypeAdministrationConfiguration = configuration.forManagedDomainType(ClassUtils.getUserClass(persistentEntity.getType()));
String domainTypeName = domainTypeAdministrationConfiguration.getDomainTypeName();
FilePathResolver pathResolver = new ReferenceFilePathResolver(fileStorageDirectory, persistentEntity, domainTypeName);
return new ReferenceFileManipulationStrategy(pathResolver);
}