public void addServiceDescription(ServiceDescription serviceDescription) throws DescriptorAlreadyExistsException,
AiravataAPIInvocationException{
try {
getClient().getRegistryClient().addServiceDescriptor(serviceDescription);
} catch (org.apache.airavata.registry.api.exception.gateway.DescriptorAlreadyExistsException e) {
throw new DescriptorAlreadyExistsException("Service descriptor "
+ serviceDescription.getType().getName()
+ " already exists.", e);
} catch (RegistryException e) {
throw new AiravataAPIInvocationException("An internal error occurred while trying to add service descriptor"
+ serviceDescription.getType().getName(),