Welcome to the Ranch
Please use
code tags; I added them for you this time and doesn't it look better
Also don't write so many blank lines; I have deleted lots of blanks and also had to guess that the second class it not an inner class.
Why have you got so many things marked static?
Why are you returning
null from anywhere; that is a potentially dangerous thing to do, as you have just found out.