sPFLib/src/main/java/it/polimi/spf/lib/services/SPFServiceRegistry.java
@Deprecated
	public <T> void registerService(Class<? super T> serviceInterface) {
		Utils.notNull(serviceInterface, "serviceInterface must not be null");

		ServiceInterface annotation = serviceInterface.getAnnotation(ServiceInterface.class);
		if (annotation == null) {
			throw new IllegalServiceException("Missing annotation");
		}

		String flattenComponentName = annotation.componentName();
		if (flattenComponentName == null) {
			throw new IllegalStateException("Missing componentName");
		}

		ComponentName cn = ComponentName.unflattenFromString(flattenComponentName);
		registerService(serviceInterface, cn);
	}
@Deprecated
	public <T> void registerService(Class<? super T> serviceInterface) {
		Utils.notNull(serviceInterface, "serviceInterface must not be null");

		ServiceInterface annotation = serviceInterface.getAnnotation(ServiceInterface.class);
		if (annotation == null) {
			throw new IllegalServiceException("Missing annotation");
		}

		String flattenComponentName = annotation.componentName();
		if (flattenComponentName == null) {
			throw new IllegalStateException("Missing componentName");
		}

		ComponentName cn = ComponentName.unflattenFromString(flattenComponentName);
		registerService(serviceInterface, cn);
	}
Allows to register a service in the service index. Such service is made
available to remote apps.

@param serviceInterface
@param implementation