String tiPathName = System.getProperty( IMPLEMENTATION_PATH ); if ( tiPathName == null || tiPathName.trim().length() == 0 ) tiPathName = "gov.nist";  sipFactory.resetFactory(); sipFactory.setPathName( tiPathName );
    protected void setUp() throws java.lang.Exception    {/** Made these static in the super class - EI - breaks my code. will see why later .*/        //init the RI        try        {            sipFactory = SipFactory.getInstance();            sipFactory.resetFactory();            sipFactory.setPathName( "gov.nist" );            riAddressFactory = sipFactory.createAddressFactory();            riMessageFactory = sipFactory.createMessageFactory();            riHeaderFactory = sipFactory.createHeaderFactory();            riSipStack = sipFactory.createSipStack( getRiProperties() );            riListeningPoint = riSipStack.createListeningPoint( 6050, "udp" );            riSipProvider = riSipStack.createSipProvider( riListeningPoint );        }        catch ( Throwable exc )        {            throw new TckInternalError(                "An exception occurred while initialising RI" );        }        // super.getFactories();        //init the TI        tiAddressFactory = sipFactory.createAddressFactory();        tiMessageFactory = sipFactory.createMessageFactory();        tiHeaderFactory = sipFactory.createHeaderFactory();        String tiPathName = System.getProperty( IMPLEMENTATION_PATH );        if ( tiPathName == null || tiPathName.trim().length() == 0 )            tiPathName = "gov.nist";        sipFactory.resetFactory();        sipFactory.setPathName( tiPathName );        tiSipStack = sipFactory.createSipStack( getTiProperties() );        tiListeningPoint = tiSipStack.createListeningPoint( 5060, "udp" );        tiSipProvider = tiSipStack.createSipProvider( tiListeningPoint );        //If we don't wait for them to start first messages get lost and are        //therefore reported as test failures.        sleep(STACKS_START_FOR);    }