configuration.setConnectionTimeout(SERVER_CONNECTION_TIMEOUT);
configuration.setSslContext(getAcceptingSSLContext());
// Create the connection
final HostControllerConnection connection = new HostControllerConnection(serverProcessName, userName, configuration, executor);
// Trigger the started notification based on the process state listener
final ControlledProcessStateService processService = processStateServiceInjectedValue.getValue();
processService.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(final PropertyChangeEvent evt) {
final ControlledProcessState.State current = (ControlledProcessState.State) evt.getNewValue();
if(current == ControlledProcessState.State.RUNNING) {
// Send the started notification