/** @return the nested diagnostic context string for this step's log file */ @SuppressWarnings("unchecked") private String getNestedDiagnosticContext() { Step unProxiedStep = (Step) ProxyUtils.getTargetIfProxied(step); Class stepClass = unProxiedStep.getClass(); ModuleService module = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(stepClass); String nestedDiagnosticContext = StringUtils.substringAfter(module.getModuleConfiguration().getNamespaceCode(), "-") .toLowerCase() + File.separator + step.getName() + "-" + dateTimeService.toDateTimeStringForFilename(dateTimeService.getCurrentDate()); return nestedDiagnosticContext; }