logger.fine("orb center : " + center + " size " + size);
String cellType =
"org.jdesktop.wonderland.modules.orb.server.cell.OrbCellMO";
OrbCellMO orbCellMO;
if (vp != null) {
orbCellMO = (OrbCellMO) CellMOFactory.loadCellMO(cellType,
center, (float) size, username, callID, simulateCalls, vp, bystanders);
} else {
orbCellMO = (OrbCellMO) CellMOFactory.loadCellMO(cellType,
center, (float) size, username, callID, simulateCalls);
}
if (orbCellMO == null) {
logger.warning("Unable to spawn orb");
return;
}
cellID = orbCellMO.getCellID();
try {
orbCellMO.setServerState(new OrbCellServerState());
} catch (ClassCastException e) {
logger.warning("Error setting up new cell " +
orbCellMO.getName() + " of type " +
orbCellMO.getClass() + e.getMessage());
return;
}
try {
CellManagerMO.getCellManager().insertCellInWorld(orbCellMO);