private ValueMap seek()

in src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/BasicQueryLanguageProvider.java [142:156]


        private ValueMap seek() {
            ValueMap result = null;
            while (result == null && rows.hasNext()) {
                try {
                    final Row jcrRow = rows.nextRow();
                    final String resourcePath = jcrRow.getPath();
                    if (resourcePath != null && providerContext.getExcludedPaths().matches(resourcePath) == null) {
                        result = new ValueMapDecorator(getRow(jcrRow));
                    }
                } catch (final RepositoryException re) {
                    logger.error("queryResources$next: Problem accessing row values", re);
                }
            }
            return result;
        }