private String objectToString(StringBridge bridge, String fieldName, Object value) {
ContextualException2WayBridge contextualBridge = new ContextualException2WayBridge()
.setClass( getBeanClass() )
.setStringBridge( bridge )
.setFieldName( fieldName );
return contextualBridge.objectToString( value );
}
public AddLuceneWork createAddWork(Class<T> entityClass, T entity, Serializable id, String idInString, EntityInitializer sessionInitializer, boolean isBatch) {
Map<String, String> fieldToAnalyzerMap = new HashMap<String, String>();
Document doc = getDocument( entity, id, fieldToAnalyzerMap, sessionInitializer );