Moved the logic from beforeTransactionCompletion method to a
BeforeTransactionCompletionProcess - SYNC-287

Follow up to avoid possible Exception - SYNC-287

Cleaned up the javadocs - SYNC-287