}
}
private Overview loadOverview(Path path) {
Overview overview = new Overview();
try {
overview.setMetadata(metadataService.getMetadata(path));
}catch (Exception e ){
// Some older versions in our example do not have metadata.
// This should be impossible in any kie-wb version
logger.error("No metadata found for file: " + path.getFileName() + " full path [" + path.toString()+"]");
}
overview.setPreview("");
overview.setProjectName(projectService.resolveProject(path).getProjectName());
return overview;
}