fix generic method getBean