private Location getLocation(String locationUniqueId) { Location location = ((LocationResource1_8) Context.getService(RestService.class).getResourceByName( RestConstants.VERSION_1 + "/location")).getByUniqueId(locationUniqueId); if (location == null) throw new ObjectNotFoundException(); return location; } }