@Override
        public void save() throws IOException {
            if (!DBWorkbench.getPlatform().getWorkspace().hasRealmPermission(RMConstants.PERMISSION_CONFIGURATION_MANAGER)) {
                log.warn("The user has no permission to save sql templates configuration");
                return;
            }
            // Save templates
            String templatesConfig = getString(PREF_STORE_KEY);
            try {
                DBWorkbench.getPlatform()
                    .getProductConfigurationController()
                    .saveConfigurationFile(TEMPLATES_CONFIG_XML, templatesConfig);
            } catch (DBException e) {
                log.warn("Can't save template configuration", e);
            }
        }
Returns <code>true</code> if a context type id specifies a valid context type
or if no context type registry is present.

@param contextTypeId the context type id to look for
@return <code>true</code> if the context type specified by the id
is present in the context type registry, or if no registry is
specified
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/templates/SQLTemplateStore.java