public GuidedTemplateEditorContent loadContent( final Path path ) {
try {
final TemplateModel model = load( path );
final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();
final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( model );
DataModelOracleUtilities.populateDataModel( oracle,
dataModel,
visitor.getConsumedModelClasses() );
return new GuidedTemplateEditorContent( model,
dataModel );
} catch ( Exception e ) {