public void removeMethod(Method method) {
        synchronized (methodMapLock) {
            HashMap<String, Method> newMap = new HashMap<>(methodMap());
            if (newMap.remove(method.name()) == method) {
                methodMap.setRelease(newMap);
            }
        }
    }
Removes a method from the set of methods held by this
Supervisor. Use this if you know exactly which method to remove
and not only the name.

@param method the method to remove
jrt/src/com/yahoo/jrt/Supervisor.java