private void addProperty(Statement statement,SearchDocument document){
  String value=SearchFields.getLiteralPropertyValueAsString(statement);
  if (value == null) {
    return;
  }
  String field=SearchFields.getPropertyField(statement.getPredicate());
  addProperty(field,value,document);
}

private void addProperty ( Statement statement , SearchDocument document ) { String value = SearchFields . getLiteralPropertyValueAsString ( statement ) ; if ( value == null ) { return ; } String field = SearchFields . getPropertyField ( statement . getPredicate ( ) ) ; addProperty ( field , value , document ) ; }
check if the passed statement should be added ( is it indexed ? is it stored ? ) and add it as predicate to the passed document . no checks whether the predicate was already there .
