Solved some bugs.
Fixed build.xml
Broke up transactions
Batch delete of ExpenseNoteDoc entities
Added some logs.
Added rebuild indexes task
Added rebuild indexes task
Refactored rebuild in small batches
Refactored rebuild in small batches
Refactored rebuild in tiny batches