@GET
@Path("geoloc")
@Produces(MediaType.APPLICATION_JSON)
public GeolocContextResponse getGeolocMarketArea(@Context HttpServletRequest request) {
GeolocContextResponse geolocContextResponse = new GeolocContextResponse();
try {
GeolocDataPojo geolocDataPojo = marketPojoService.getGeolocDataByRemoteAddress(request.getRemoteAddr());
MarketAreaPojo marketAreaPojo = marketPojoService.getMarketAreaByGeolocData(geolocDataPojo);
geolocContextResponse.setMarketArea(marketAreaPojo);
} catch (Exception e) {
logger.error("Some error during the Geoloc Context.", e);
// TODO SET ERROR IN THE RESPONSE