(ConsoleListener) deploy.sfResolve(
(TestListenerFactory) deploy.sfResolve(
    public void testSuccess() throws Throwable {        String url;        Prim deploy = null;        url = "/files/console-all.sf";        final String appName = "ConsoleTest";        int seconds = getTimeout();        try {            deploy = deployExpectingSuccess(url, appName);            TestRunner runner = (TestRunner) deploy;            assertTrue(runner != null);            ConsoleListener listener = null;            listener =                    (ConsoleListener) deploy.sfResolve(                            TestRunner.ATTR_LISTENER,                            listener,                            true);            boolean finished = spinTillFinished(runner, seconds);            assertTrue("Test run timed out", finished);        } finally {            terminateApplication(deploy);        }    }