*/
private static VDBData generateTemplate(DBDData dbd, DBTemplate dbTemplate){	VDBTemplate vt = new VDBTemplate(dbTemplate.getId(), dbTemplate.getFileName());	vt.setComment(dbTemplate.getComment());		vt.setDescription(dbTemplate.getDescription());		// generate vt.group / VDB data	Group root = Group.getRoot();		try	{			vt.setGroup(new Group(null));		vt.getGroup().setAbsoluteName("");		vt.getGroup().setLookupTable(new Hashtable());			Group.setRoot(vt.getGroup());			VDBData vdbData = VDBData.generateVDBDataInternal(dbd, dbTemplate.getData());		DrawingSurface.applyVisualData(false, vt.getGroup(), dbTemplate.getData(), vdbData);		vt.getGroup().unconditionalValidateSubObjects(false);	/*			vt.setInputs(generateTemplateIOFields(dbTemplate, dbTemplate.getInputs(), "input"));		vt.setOutputs(generateTemplateIOFields(dbTemplate, dbTemplate.getOutputs(), "output"));			vt.setInputComments(dbTemplate.getInputComments());		vt.setOutputComments(dbTemplate.getOutputComments());	*/			vt.setPorts(dbTemplate.getPorts());		vt.setPortsV(dbTemplate.getPortsV());			VDBData.addTemplate(vt);				return vdbData;	}	catch (Exception ex)	{		Console.getInstance().println();		Console.getInstance().println("Exception caught while generating '"+dbTemplate.getId()+"' template.");		Console.getInstance().println(ex);		Console.getInstance().println();	}	finally	{		Group.setRoot(root); 	}		return null;}