[Ming] implementing the getBean method