This methods is waaaay too long. Try not to go over 20 lines per method. Also, when you split it up in methods, you can add javadoc to the method, in stead of putting it like comments in the code. This makes it cleaner.