changed to read from JavaConfig.xml