container/components/components/src/main/java/org/mobicents/slee/container/component/EventTypeComponentImpl.java
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) {
		// 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