Provided getName and package methods for NewJavaClass dialog