public class CheckDaoRegistry {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext(
new String[]{"com/vst/snippets/snippetsContext-hibernate.xml"});
final VstDomainDaoRegistry registry =
(VstDomainDaoRegistry) context.getBean("daoRegistry");
Dao dao= registry.getAnswerDao();
System.out.println(dao.getClass().getName());
}