if ( idGetter != null ) {
contextualBridge.pushMethod( idGetter.getName() );
}
contextualBridge.set( idKeywordName, id, doc, luceneOptions );
if ( idGetter != null ) {
contextualBridge.popMethod();
}
// finally add all other document fields
Set<String> processedFieldNames = new HashSet<String>();
buildDocumentFields( instance, doc, getMetadata(), fieldToAnalyzerMap, processedFieldNames, contextualBridge );