public Namespace getNamespaceContaining(Address addr) {
		Field field = namespaceMap.getValue(addr);
		if (field != null) {
			Symbol s = symbolMgr.getSymbol(field.getLongValue());
			if (s != null) {
				Object object = s.getObject();
				if (object instanceof Namespace) {
					return (Namespace) object;
				}
			}
		}
		return globalNamespace;
	}
Get the Namespace containing the given address. If the address is not
in a defined namespace (e.g., Function), the global namespace is
returned.
@param addr the address for which to find a namespace.
@return namespace which contains address or the 
{@link #getGlobalNamespace() global namespace} if a specific namespace not found.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/NamespaceManager.java