private static String loadTemplate(DBData data, String templateFile, String referencedFromFile, DBPathSpecification paths) throws FileNotFoundException
private static String loadTemplate(DBData data, String templateFile, String referencedFromFile, DBPathSpecification paths) throws Exception
private static String loadTemplate(DBData data, String templateFile, String referencedFromFile, DBPathSpecification paths) throws FileNotFoundException{	File file = paths.search4File(templateFile);	String templateToResolve = file.getAbsolutePath();	// check if file already loaded	// !!!	if(DataProvider.getInstance().getLoadedDBs().contains(templateToResolve))	{		Console.getInstance().println("Template \""+templateFile+"\" already loaded...");				// extract id (not a prefect solution)		// id is name		return file.getName();	}	// cyclic reference check	{	}		Console.getInstance().println("Loading template \""+templateFile+"\"...");	DBData templateData = resolveDB(templateToResolve);	templateData.getTemplateData().setData(templateData);	data.addTemplate(templateData.getTemplateData());		// add to loaded list	DataProvider.getInstance().getLoadedDBs().addElement(templateData.getTemplateData().getFileName());	Console.getInstance().println("Template \""+templateFile+"\" loaded.");	return templateData.getTemplateData().getId();}