startSmartFrog(); Object deployedApp = SFSystem.runConfigurationDescriptor(cfgDesc,true);
Object deployedApp = deployApplication(appName, testURL);
    protected Prim deployExpectingSuccess(String testURL, String appName)                                                    throws Exception,Throwable {        ConfigurationDescriptor cfgDesc =                new ConfigurationDescriptor(appName,                                            testURL,                    ConfigurationDescriptor.Action.DEPLOY,                                            hostname,                                            null);        try {            startSmartFrog();            Object deployedApp = SFSystem.runConfigurationDescriptor(cfgDesc,true);            if (deployedApp instanceof Prim) {                return ((Prim) deployedApp);            } else if (deployedApp instanceof ConfigurationDescriptor) {                Throwable exception = ((ConfigurationDescriptor)deployedApp).                        resultException;                if (exception!=null); {                    throw exception;                }            }        } catch (Throwable throwable) {            logChainedException(throwable);            throw throwable;        }        fail("something odd came back");        //fail throws a fault; this is here to keep the compiler happy.        return null;    }