code: public static Map<OperationId, Method> getOperationMap(Class<?> serviceInterface) {
      if (!serviceInterface.isInterface()) {
        Class type = serviceInterface;
        Map<OperationId, Method> operations = new HashMap<>();
        while (type != Object.class) {
          for (Class<?> iface : type.getInterfaces()) {
            operations.putAll(findOperations(iface));
          }
          type = type.getSuperclass();
        }
        return operations;
      }
      return findOperations(serviceInterface);
    }
docs: Returns the collection of operations provided by the given service interface.
  
  @param serviceInterface the service interface
  @return the operations provided by the given service interface