@SuppressWarnings("unchecked")
private void start() throws DempsyException
{
try
{
DempsyExecutor executor = (DempsyExecutor)clusterDefinition.getExecutor(); // this can be null
if (executor != null)
executor.start();
ClusterInfoSession clusterSession = clusterSessionFactory.createSession();
ClusterId currentClusterId = clusterDefinition.getClusterId();
router = new Router(clusterDefinition.getParentApplicationDefinition());
router.setCurrentCluster(currentClusterId);
router.setClusterSession(clusterSession);