public static ToolTemplate readToolTemplate(String resourceFileName) {

		try (InputStream is = ResourceManager.getResourceAsStream(resourceFileName)) {
			if (is == null) {
				return null;
			}
			SAXBuilder sax = XmlUtilities.createSecureSAXBuilder(false, false);
			Document doc = sax.build(is);
			Element root = doc.getRootElement();

			return new GhidraToolTemplate(root, resourceFileName);
		}
		catch (JDOMException e) {
			Msg.error(LOGGER, "Error reading XML for resource " + resourceFileName, e);
		}
		catch (Exception e) {
			Msg.error(LOGGER, "Can't read tool template for resource " + resourceFileName, e);
		}

		return null;
	}
Returns all tools found in the classpath that live under a root
'defaultTools' directory or a root 'extraTools' directory

@return the tools
Ghidra/Framework/Project/src/main/java/ghidra/framework/ToolUtils.java