++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ A python file to read applicationcontext.xml and generate Spring bean locator class. this will remove the need to lookup bean using string constant. This class assumes that you have a SpringUtil class that will provide you the application context. A sample class that will be generated looks like package xxx.util; import xxx.util.SpringUtils; public class SpringBeanLocator { public static xxx.cache.JCache getJcache() { return (xxx.cache.JCache) SpringUtils.getApplicationContext().getBean("jcache"); } public static xxx.ldap.LDAPHelper getLdapHelper() { return (xxx.ldap.LDAPHelper) SpringUtils.getApplicationContext().getBean("ldapHelper"); } ...................... } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ import sys try: from xml.etree import ElementTree as ET except ImportError: from elementtree import ElementTree as ET CLASS_TEMPLATE =...