public File persistentPropertyFileReference(Object entity, PersistentProperty persistentProperty) {
FileReference fileReference = fileReferenceAnnotation(persistentProperty);
String relativeFilePath = persistentPropertyFileRelativePath(entity, persistentProperty);
if (propertyBaseDirectoryExists(fileReference)) {
return getFile(fileReference.baseDirectory(), relativeFilePath);
}
return getFile(this.fileStorageDirectory, relativeFilePath);
}