public void addMethod(Method method) {
        synchronized (methodMapLock) {
            HashMap<String, Method> newMap = new HashMap<>(methodMap());
            newMap.put(method.name(), method);
            methodMap.setRelease(newMap);
        }
    }
Adds a method to the set of methods held by this Supervisor

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