public <T extends Service> T lookupService(String serviceName, Class<T> serviceClass) throws ServiceNotFoundException
	{
		Service service = contextServices.get(serviceName);
		
		if (service == null)
			throw new ServiceNotFoundException("Service \"" + serviceName + "\" not found");
		
		if (service.getClass() != serviceClass)
			throw new ServiceNotFoundException("Service of requested type " + serviceClass + " was not found");
		
		return (T)service;
	}