endpointId = dbHelper.generateIdForEndpoint(endpoint, AccessibilityStatus.INACCESSIBLE);
}
//clear previous fetches for this endpoint!
dbHelper.clearPreviousAutocompletionFetches(endpointId, FetchMethod.QUERY_RESULTS, type);
dbHelper.storeCompletionFetchesFromLocalhost(endpointId, type, FetchMethod.QUERY_RESULTS, completions);
//done!
response.setStatus(HttpServletResponse.SC_NO_CONTENT);
} catch (JSONException e) {