public static void main(String[] args) throws Exception {
String config = GenericConsumer.class.getPackage().getName().replace('.', '/') + "/generic-consumer.xml";
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
context.start();
IUserService userservice = (IUserService) context.getBean("userservice");
User user = userservice.get(new Params("a=b"));
System.out.println(user);
System.in.read();
}