The ScenarioServiceFactory class
The ScenarioServiceFactory class provides factory methods for creating new instances of classes that implement the IScenarioService interface.
There are three variants of the factory methods:

Client supplies correlator host and port;

Client supplies an initialized 
EngineClientInterface (usually an 
EngineClientBean);

Client supplies an initialized 
IEventServiceThe factory methods are:
 static IScenarioService createScenarioService()
static IScenarioService createScenarioService() — defined as:
static IScenarioService createScenarioService(
    EngineClientInterface engineClient, 
    java.util.Map<String, Object> scenarioServiceConfig,
    java.beans.PropertyChangeListener listener)
Create a new ScenarioService instance using the supplied EngineClient to connect to a correlator, and optionally pass a listener that will be added before any events are received.
 static IScenarioService createScenarioService()
static IScenarioService createScenarioService() — defined as:
static IScenarioService createScenarioService(
    IEventService eventService, 
    java.util.Map<String, Object> scenarioServiceConfig,
    java.beans.PropertyChangeListener listener)
Create a new ScenarioService instance using the supplied IEventService to connect to a correlator, and optionally pass a listener that will be added before any events are received.
 static IScenarioService createScenarioService()
static IScenarioService createScenarioService() — defined as:
static IScenarioService createScenarioService(
    java.lang.String socket_hostname, 
    int socket_port, 
    java.util.Map<String, Object> scenarioServiceConfig,
    java.beans.PropertyChangeListener listener)
Create a new ScenarioService instance with an EngineClient connected to a correlator on the given host and port, and optionally pass a listener that will be added before any events are received.
For each of the above factory methods, the client must also supply parameters for a configuration map, and a listener. Either of those additional parameters may be null. For more details of the configuration parameter, see the 
Javadoc documentation for 
IScenarioService, and 
ScenarioServiceConfig. The names of the bound properties for which the listener will be notified are those properties of 
IScenarioService whose names begin “
PROPERTY_”, for example, 
IScenarioService.PROPERTY_SCENARIO_ADDED.