private Collection<TemplatePersistenceData> readContributedTemplates() throws IOException {
        Collection<TemplatePersistenceData> templates = new ArrayList<>();
        readIncludedTemplates(
            SQLEditorActivator.PLUGIN_ID,
            templates,
            "templates/default-templates.xml",
            "$nl$/templates/default-templates.properties");

        // Read templates for DS providers
        for (DBPDataSourceProviderDescriptor provider : DBWorkbench.getPlatform().getDataSourceProviderRegistry().getDataSourceProviders()) {
            readIncludedTemplates(
                provider.getPluginId(),
                templates,
                "templates/" + provider.getId() + "-templates.xml",
                "$nl$/templates/" + provider.getId() + "-templates.properties");
        }

        return templates;
    }
Loads the templates contributed via the templates extension point.

@throws java.io.IOException {@inheritDoc}
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/templates/SQLTemplateStore.java