sPFFramework/src/main/java/it/polimi/spf/framework/local/SPFServiceManagerImpl.java
@Override
	public boolean registerService(String accessToken, SPFServiceDescriptor descriptor, SPFError error) throws RemoteException {
		Utils.logCall(TAG, "registerService", accessToken, descriptor, error);

		try {
			mSecurityMonitor.validateAccess(accessToken, Permission.REGISTER_SERVICES);
		} catch (TokenNotValidException e) {
			error.setCode(SPFError.TOKEN_NOT_VALID_ERROR_CODE);
			return false;
		} catch (PermissionDeniedException e) {
			error.setError(SPFError.PERMISSION_DENIED_ERROR_CODE, "Missing permission: " + Permission.REGISTER_SERVICES);
			return false;
		}

		return SPF.get().getServiceRegistry().registerService(descriptor);
	}
@Override
	public boolean registerService(String accessToken, SPFServiceDescriptor descriptor, SPFError error) throws RemoteException {
		Utils.logCall(TAG, "registerService", accessToken, descriptor, error);

		try {
			mSecurityMonitor.validateAccess(accessToken, Permission.REGISTER_SERVICES);
		} catch (TokenNotValidException e) {
			error.setCode(SPFError.TOKEN_NOT_VALID_ERROR_CODE);
			return false;
		} catch (PermissionDeniedException e) {
			error.setError(SPFError.PERMISSION_DENIED_ERROR_CODE, "Missing permission: " + Permission.REGISTER_SERVICES);
			return false;
		}

		return SPF.get().getServiceRegistry().registerService(descriptor);
	}
/*
(non-Javadoc)

@see it.polimi.spf.framework.local.LocalServiceManager#registerService
(java.lang.String, it.polimi.spf.framework.local.ServiceDescriptor)