get bean class by bean id