}
String extension = uri.substring(index + 1);
// Next look for a cell type that handles content with
// this file extension and create a new cell with it.
CellRegistry registry = CellRegistry.getCellRegistry();
Set<CellFactorySPI> factories =
registry.getCellFactoriesByExtension(extension);
if (factories == null) {
logger.warning(
"Could not find cell factory for " + extension);
}
CellFactorySPI factory = factories.iterator().next();