StorageFileItem file = (StorageFileItem) item;
String key = file.getContentGeneratorId();
if (getContentGenerators().containsKey(key)) {
ContentGenerator generator = getContentGenerators().get(key);
try {
file.setContentLocator(generator.generateContent(this, uid.getPath(), file));
}
catch (Exception e) {
throw new LocalStorageException("Could not generate content:", e);
}
}