public PrintSecurityChain(String chainName) throws Exception {
appContext = new ClassPathXmlApplicationContext("fwspring.xml");
IDaoFactory idf = (IDaoFactory) appContext.getBean("ibatisDao");
SecurityChain sc = idf.securityChainDao().load(chainName);
if(sc instanceof SecurityChainByDate)
{
SecurityChainByDate scbd = (SecurityChainByDate)sc;
for(int i=0;i<scbd.getRollDates().length;i++)
{