code: public Method get(final MethodIdentifier identifier) {
          // search for available methods
          readWriteLock.readLock().lock();
          try {
              final Optional<? extends IdentifiableMethod> method = availableMethods.stream().filter(m -> m.matches(identifier)).findAny();
              if (method.isPresent())
                  return method.get();
          } finally {
              readWriteLock.readLock().unlock();
          }
  
          // apply default behaviour
          return DEFAULT_METHOD.apply(identifier);
      }
docs: Returns a method identified by an method identifier.
  
  @param identifier The method identifier
  @return The found method or a default handler