public Object getService(Class serviceInterface)
{
List servicePoints = (List) _servicePointsByInterface.get(serviceInterface);
if (servicePoints == null)
throw new ApplicationRuntimeException(
ImplMessages.noServicePointForInterface(serviceInterface));
if (servicePoints.size() > 1)
throw new ApplicationRuntimeException(
ImplMessages.multipleServicePointsForInterface(serviceInterface, servicePoints));
ServicePoint sp = (ServicePoint) servicePoints.get(0);
return sp.getService(serviceInterface);