}
// Using the registry of Cell components, find a factory to generate
// a default cell component server state class.
CellComponentRegistry r = CellComponentRegistry.getCellComponentRegistry();
CellComponentFactorySPI spi = r.getCellFactoryByStateClass(clazz);
if (spi == null) {
LOGGER.warning("Could not find cell component factory for " +
clazz.getName());
return;
}
// Create a new (default) instance of the server-side cell component
// state class. We use this to find out what the class name is for
// the cell component on the server side.
CellComponentServerState s = spi.getDefaultCellComponentServerState();
String className = s.getServerComponentClassName();
// Send a message to remove the component giving the class name. Wait
// for a response.
CellID cellID = selectedCell.getCellID();