if (LOG.isTraceEnabled()) {
LOG.trace("Found controller file: " + controllerFile.getAbsolutePath());
}
final String parentPath = controllerFile.getParentFile().getAbsolutePath();
sourceInfo = new SourceInfo(new FileSource(controllerFile, "UTF-8", true), parentPath);
sourceInfo.controllerPath = parentPath.substring(baseDir.getAbsolutePath().length());
// replace windows path separators
sourceInfo.controllerPath = sourceInfo.controllerPath.replace('\\', '/');
return sourceInfo;