CommandLine line = parser.parse(options, args);
Properties ytexProps = new Properties();
ytexProps.putAll((Properties) KernelContextHolder
.getApplicationContext().getBean("ytexProperties"));
ytexProps.putAll(System.getProperties());
ConceptDao conceptDao = KernelContextHolder.getApplicationContext()
.getBean(ConceptDao.class);
PageRankService pageRankService = KernelContextHolder
.getApplicationContext().getBean(PageRankService.class);
ConceptGraph cg = conceptDao.getConceptGraph(ytexProps
.getProperty("org.apache.ctakes.ytex.conceptGraphName"));
if (line.hasOption("sim")) {
String cs = line.getOptionValue("sim");
String concept[] = cs.split(",");
System.out.println(pageRankService.sim(concept[0], concept[1],