private FileManipulationStrategy createReferenceFileManipulationStrategy(PersistentEntity persistentEntity) {
File fileStorageDirectory = lightAdminConfiguration.getFileStorageDirectory();
DomainTypeAdministrationConfiguration domainTypeAdministrationConfiguration = configuration.forManagedDomainType(ClassUtils.getUserClass(persistentEntity.getType()));
String domainTypeName = domainTypeAdministrationConfiguration.getDomainTypeName();
FilePathResolver pathResolver = new ReferenceFilePathResolver(fileStorageDirectory, persistentEntity, domainTypeName);
return new ReferenceFileManipulationStrategy(pathResolver);
}