157158159160161162163164165166167
point.getLon()); if (service == null) { service = provider; } else if (service != provider) { throw new MultipleServiceAreasServiceException(); } } if (service == null) throw new OutOfServiceAreaServiceException();
187188189190191192193
MultipleServiceAreasServiceException { if (providers.size() == 1) return providers.iterator().next(); if (providers.size() == 0) throw new OutOfServiceAreaServiceException(); throw new MultipleServiceAreasServiceException(); }