JSONObject statusObj = getStatusObject(FetchMethod.QUERY_RESULTS);
if (statusObj == null && queryResultsResults.length() == 0 && !dbHelper.lastFetchSuccesful(endpointId, type)) {
//no error or exception. just try fetching our stuff!
AutocompletionFetcher fetcher = null;
if (type == FetchType.PROPERTIES) {
fetcher = new PropertiesFetcher(endpoint, dbHelper);
} else {
fetcher = new ClassesFetcher(endpoint, dbHelper);
}
try {
fetcher.fetch();