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