LOG.info("Specified Sort Field: "+sortField);
LOG.debug("Specified Sort Field: "+sortField);
     private Sort determineSort()      {        if ( !isInitialized() )            throw new IllegalStateException("Database must be initialized before use!");                String sortField = registry.getConfiguration().getProperty(PROP_SORTFIELD);                LOG.info("Specified Sort Field: "+sortField);                    Sort sort = Sort.RELEVANCE;         if ( sortField != null && !"".equals(sortField) ) {                        for ( int i = 0; i < Entry.STRING_SORT_FIELDS.length; i++ ) {                if ( Entry.STRING_SORT_FIELDS[i].equals(sortField) )                     return new Sort( new SortField(sortField, SortField.STRING) );            }                      for ( int i = 0; i < Entry.INTEGER_SORT_FIELDS.length; i++ ) {                if ( Entry.INTEGER_SORT_FIELDS[i].equals(sortField) )                     return new Sort( new SortField(sortField, SortField.INT) );            }                      if ( sort == null )                throw new IllegalArgumentException("Illegal sort field: "+sortField);        }                 return sort;     }