anchor.diff:  
       if( resource != null ){
           ValueMap widgetProps = resource.getValueMap();
  +
  +        final String displayProperty = widgetProps.get( "displayProperty", new String() );
   
           String[] predicates = widgetProps.get( "predicates", new String[0] );
   
  
positive.code:                 public Object transform(Object input) {
                      try {
                          Resource item = (Resource) input;
                          String dataValue = item.getPath();
                          String text = dataValue;
  
                          ValueMap vm = new ValueMapDecorator(new HashMap<String, Object>());
                          vm.put("text", text);
                          vm.put("value", dataValue);
                          vm.put("canDelete", true);
  
                          return new ValueMapResource(resolver, path, "nt:unstructured", vm);
  
negative.code: <%@ page import="com.adobe.granite.ui.components.ds.DataSource" %>
  <%--
    #%L
    ACS AEM Commons Package
    %%
    Copyright (C) 2013 Adobe
    %%
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    #L%
    --%><%--
    ==============================================================================
  
    Query autocomplete datasoruce.
  
    A datasource that takes a list of predicates and a display property to build out the autocomplete list.
    The path of the resource is saved in the JCR and the display property is used for better UX.
  
    /**
     * The predicate map.
     */
    - predicates (String[]) = type=cq:Page,path=/content/geometrixx,property=jcr:content/sling:resourceType,property.value=geometrixx/components/homepage
  
     /**
     * The display property name.
     */
     -displayProperty (String) = jcr:content/jcr:title.
  
    ==============================================================================
  
  --%><%@ page import="com.adobe.granite.ui.components.ds.SimpleDataSource" %>
  <%@ page import="com.adobe.granite.ui.components.ds.ValueMapResource" %>
  <%@ page import="com.day.cq.search.PredicateGroup" %>
  <%@ page import="com.day.cq.search.Query" %>
  