public boolean hasNamespace(final String namespace) {
    return rpcMethods.keySet().stream()
        .anyMatch(
            key -> key.toUpperCase(Locale.ROOT).startsWith(namespace.toUpperCase(Locale.ROOT)));
  }
Checks if RPC methods belongs to a namespace

@param namespace the namespace to check against
@return true if any of the RPC method starts with given namespace, false otherwise.
app/src/main/java/org/hyperledger/besu/services/RpcEndpointServiceImpl.java