This method is way too long. Please try extracting little sub methods. We are aiming for methods which are a maximum of 10 lines or so long. Helps readability a lot.