Externalization of inner class that is causing deployment problems