Refactoring of Long Method in class MidDialogRequestManager.java