public void stopMockService( MockRunner runner )
{
synchronized( server )
{
MockService mockService = runner.getMockService();
final Integer port = new Integer( mockService.getPort() );
Map<String, List<MockRunner>> map = runners.get( port );
if( map == null || !map.containsKey( mockService.getPath() ) )
return;
map.get( mockService.getPath() ).remove( runner );
if( map.get( mockService.getPath() ).isEmpty() )
{
map.remove( mockService.getPath() );
}
mockRunners.remove( runner );
log.info( "Stopped MockService [" + mockService.getName() + "] on port [" + port + "]" );
if( map.isEmpty() && !SoapUI.getSettings().getBoolean( HttpSettings.LEAVE_MOCKENGINE ) )
{
SoapUIConnector connector = connectors.get( port );
if( connector == null )