private Symbol lookupRoutine(String resourceRoutine, boolean printScriptMsgs) {

		Symbol foundSym = null;

		// Get the symbols that match the current resource routine
		SymbolIterator symbols = currentProgram.getSymbolTable().getSymbols(resourceRoutine);
		while (symbols.hasNext()) {
			//If a match is found get the function at the address of the found symbol
			foundSym = symbols.next();
			Function functionAt =
				currentProgram.getFunctionManager().getFunctionAt(foundSym.getAddress());
			if (functionAt != null) {
				return foundSym;
			}
		}

		if (foundSym != null && printScriptMsgs) {
			println("References to the " + resourceRoutine + " routine:");
		}
		return foundSym;
	}
Checks to see if the current resource routine is found in the
programs symbol table.
@param resourceRoutine - Name of the resource routine
@param printScriptMsgs - if true, print output; if false, do not print any output;
@return Symbol - found symbol based on resourceRoutine
Ghidra/Features/Decompiler/ghidra_scripts/WindowsResourceReference.java