changed to a class method(BeanConfig.setDefaultClassLoader).