Refine long Method Extract the anonymous inner class to inner class.
Finish the Resource class