public void activatedServiceWhichDefineEventAsInitial(ServiceComponent serviceComponent) {
		// create new ordered set
		SortedSet<ServiceComponent> activeServicesWhichDefineEventAsInitial = new TreeSet<ServiceComponent>(new ActiveServicesWhichDefineEventAsInitialComparator());
		// add all existent active services, except old version, this allows smooth service upgrade
		ServiceID oldVersion = serviceComponent.getOldVersion();
		if (oldVersion == null) {
			activeServicesWhichDefineEventAsInitial.addAll(this.activeServicesWhichDefineEventAsInitial);
		}
		else {
			for (ServiceComponent existentServiceComponent : this.activeServicesWhichDefineEventAsInitial) {
				if(!existentServiceComponent.getServiceID().equals(oldVersion)) {
					activeServicesWhichDefineEventAsInitial.add(existentServiceComponent);
				}
			}
		}
		// add new service
		activeServicesWhichDefineEventAsInitial.add(serviceComponent);
		// replace old set
		this.activeServicesWhichDefineEventAsInitial = activeServicesWhichDefineEventAsInitial;
	}
public void activatedServiceWhichDefineEventAsInitial(ServiceComponent serviceComponent) {
		
		SortedSet<ServiceComponent> activeServicesWhichDefineEventAsInitial = new TreeSet<ServiceComponent>(new ActiveServicesWhichDefineEventAsInitialComparator());
		
		ServiceID oldVersion = serviceComponent.getOldVersion();
		if (oldVersion == null) {
			activeServicesWhichDefineEventAsInitial.addAll(this.activeServicesWhichDefineEventAsInitial);
		}
		else {
			for (ServiceComponent existentServiceComponent : this.activeServicesWhichDefineEventAsInitial) {
				if(!existentServiceComponent.getServiceID().equals(oldVersion)) {
					activeServicesWhichDefineEventAsInitial.add(existentServiceComponent);
				}
			}
		}
		
		activeServicesWhichDefineEventAsInitial.add(serviceComponent);
		
		this.activeServicesWhichDefineEventAsInitial = activeServicesWhichDefineEventAsInitial;
	}
public void activatedServiceWhichDefineEventAsInitial ( ServiceComponent serviceComponent ) { // create new ordered set
 SortedSet < ServiceComponent > activeServicesWhichDefineEventAsInitial = new TreeSet < ServiceComponent > ( new ActiveServicesWhichDefineEventAsInitialComparator ( ) ) ; // add all existent active services, except old version, this allows smooth service upgrade
 ServiceID oldVersion = serviceComponent . getOldVersion ( ) ; if ( oldVersion == null ) { activeServicesWhichDefineEventAsInitial . addAll ( this . activeServicesWhichDefineEventAsInitial ) ; } else { for ( ServiceComponent existentServiceComponent : this . activeServicesWhichDefineEventAsInitial ) { if ( ! existentServiceComponent . getServiceID ( ) . equals ( oldVersion ) ) { activeServicesWhichDefineEventAsInitial . add ( existentServiceComponent ) ; } } } // add new service
 activeServicesWhichDefineEventAsInitial . add ( serviceComponent ) ; // replace old set
 this . activeServicesWhichDefineEventAsInitial = activeServicesWhichDefineEventAsInitial ; }
Signals that the specified {@link ServiceComponentImpl} which define this event as initial was activated
@param serviceComponent
Signals that the specified {