if (localItem instanceof StorageFileItem) {
StorageFileItem file = (StorageFileItem) localItem;
// wrap the content locator if needed
if (!(file.getContentLocator() instanceof ReadLockingContentLocator)) {
final RepositoryItemUid uid = createUid(request.getRequestPath());
file.setContentLocator(new ReadLockingContentLocator(uid, file.getContentLocator()));
}
}
if (log.isDebugEnabled()) {
log.debug("Item " + request.toString() + " found in local storage.");
}