That code is nearly impossible to read. There are useless curly braces all over the place, and poor indenting everywhere.
Put each { on a new line. Put each } on its own line. Use Tools + Auto format to fix the indenting. Then, get rid of the useless curly braces, and re-format. Then, come on back.