// disable binary fetching by default.
query.disableBinaryFetching();
// disable custom object fetching by default. Cannot be done to not break existing API
if (!deserializeObjectValues) {
query.disableCustomObjectDeserialization();
}
List<VariableInstance> matchingInstances;
if (firstResult != null || maxResults != null) {
matchingInstances = executePaginatedQuery(query, firstResult, maxResults);