public <T> void unregisterService(Class<? super T> serviceInterface) {
		Utils.notNull(serviceInterface, "serviceInterface must not be null");
		ServiceValidator.validateInterface(serviceInterface, ServiceValidator.TYPE_PUBLISHED);
		ServiceInterface svcInterface = serviceInterface.getAnnotation(ServiceInterface.class);
		SPFServiceDescriptor svcDesc = ServiceInterface.Convert.toServiceDescriptor(svcInterface);
		String token = getAccessToken();

		try {
			SPFError error = new SPFError();
			getService().unregisterService(token, svcDesc, error);
			if (!error.isOk()) {
				handleError(error);
			}
		} catch (RemoteException e) {
			catchRemoteException(e);
		}
	}
public <T> void unregisterService(Class<? super T> serviceInterface) {
		Utils.notNull(serviceInterface, "serviceInterface must not be null");
		ServiceValidator.validateInterface(serviceInterface, ServiceValidator.TYPE_PUBLISHED);
		ServiceInterface svcInterface = serviceInterface.getAnnotation(ServiceInterface.class);
		SPFServiceDescriptor svcDesc = ServiceInterface.Convert.toServiceDescriptor(svcInterface);
		String token = getAccessToken();

		try {
			SPFError error = new SPFError();
			getService().unregisterService(token, svcDesc, error);
			if (!error.isOk()) {
				handleError(error);
			}
		} catch (RemoteException e) {
			catchRemoteException(e);
		}
	}
public < T > void unregisterService ( Class < ? super T > serviceInterface ) { Utils . notNull ( serviceInterface , "serviceInterface must not be null" ) ; ServiceValidator . validateInterface ( serviceInterface , ServiceValidator . TYPE_PUBLISHED ) ; ServiceInterface svcInterface = serviceInterface . getAnnotation ( ServiceInterface . class ) ; SPFServiceDescriptor svcDesc = ServiceInterface . Convert . toServiceDescriptor ( svcInterface ) ; String token = getAccessToken ( ) ; try { SPFError error = new SPFError ( ) ; getService ( ) . unregisterService ( token , svcDesc , error ) ; if ( ! error . isOk ( ) ) { handleError ( error ) ; } } catch ( RemoteException e ) { catchRemoteException ( e ) ; } }
Allows to unregister a previously registered service.

@param serviceInterface
Allows to unregister a previously registered service .