{
throw new NoSuchRegistrationException("There is no Registration with id '" + registrationId + "'");
}
ConsumerSPI consumer = registration.getConsumer();
consumer.removeRegistration(registration);
}
public RegistrationSPI addRegistrationFor(String consumerId, Map<QName, Object> registrationProperties) throws RegistrationException
{
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(consumerId, "Consumer identity", null);