/**
* @inheritDoc()
*/
public <T extends CellServerState> T getDefaultCellServerState(Properties props) {
AppCellXrwServerState serverState = new AppCellXrwServerState();
serverState.setAppName(appName);
// don't set a command -- the server will derive the command from
// the app name
serverState.setCommand(null);
serverState.setLaunchLocation("server");
if (doAppInitialPlacement) {
// Disable system initial placement for app cells. Because cell bounds are
// fixed at cell creation time we need to give app cells a huge bounds
// (see the comment in App2DCellMO()). We won't know the right location to
// place an app cell until it's first window is made visible. Therefore,
// we disable system placement and will perform the initial placement ourselves
// later.
logger.info("doAppInitialPlacement: disable system placement");
BoundingVolumeHint hint = new BoundingVolumeHint(false, null);
serverState.setBoundingVolumeHint(hint);
}
return (T) serverState;
}