@Override
    public int getFieldCount(final DocRef dataSourceRef) {
        return securityContext.useAsReadResult(() ->
                dataSourceProviderRegistry.getFieldCount(dataSourceRef));
    }
Here to help testing, so we don't have to work out the row/col postitions
stroom-query/stroom-query-impl/src/main/java/stroom/query/impl/QueryServiceImpl.java