private boolean doAddToolTemplate(ToolTemplate template) {
		if (!ToolUtils.writeToolTemplate(template)) {
			return false; // unable to write template
		}

		map.put(template.getName(), template);

		// notify listeners of added tool template
		SystemUtilities.runSwingNow(() -> {
			for (ToolChestChangeListener listener : listeners) {
				listener.toolTemplateAdded(template);
			}
		});

		return true;
	}
Remove tool template from the tool chest.
@return true if the template was removed from the tool chest.
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/ToolChestImpl.java