Properties exceptionMappingProps = SpiUtils.findServiceDescriptor(ServiceType.EXCEPTION, name + "-exception-mappings");
((TransportServiceDescriptor) sd).setExceptionMappings(exceptionMappingProps);
}
else if (type.equals(ServiceType.MODEL))
{
sd = new DefaultModelServiceDescriptor(name, props);
}
else
{
throw new ServiceException(CoreMessages.unrecognisedServiceType(type));
}