try {
double lat = Double.parseDouble(context.getParam("lat"));
double lon = Double.parseDouble(context.getParam("lon"));
int accuracy = Integer.parseInt(context.getParam("accuracy"));
return new LocationOperationHandler(LatLng.newInstance(lat, lon),
accuracy);
} catch (NumberFormatException ex) {
WhereMessages msgs = WhereLibrary.MESSAGES;
throw new IllegalStateException(
msgs.standardIndexPageInvalidLocationSpecified());