instanceContext.put(this.SF_PROCESS_HOST, server);
instanceContext.put(SF_PROCESS_HOST, server);
    protected void startInstance() throws Exception {        synchronized (instanceLock) {            Prim deployed = null;            logger.logOptional(name, "starting instance");            stabilizationCounter = stabilizationMeasures;            // read the template file            try {                String server = (String) servers.elementAt(currentInstances);                Context instanceContext = new ContextImpl();                instanceContext.put(this.SF_PROCESS_HOST, server);                logger.logOptional(name, "instance being created");                deployed = sfDeployComponentDescription(componentNamePrefix +                        currentInstances, this, template, instanceContext);                logger.logOptional(name, "instance created");                deployed.sfDeploy();                logger.logOptional(name, "deployed");                deployed.sfStart();                logger.logOptional(name, "started");                if (balancer != null) {                    balancer.addServer(server);                }            } catch (Exception e) {                logger.logOptional(name,                    "help... exception in starting instance");                e.printStackTrace();                try {                    deployed.sfDetachAndTerminate(TerminationRecord.normal(null));                } catch (Exception ex) {                }                throw e;            }            // add the instanceData            // resolve and deploy, named the same as the instance data            logger.logOptional(name, "started instance");            currentInstances += 1;        }    }