docs: @CheckForNull
      private Object executeSyncMethod(Method method, Object[] args) throws ApplicationException {
          if (preparingForShutdown.get()) {
              throw new JoynrIllegalStateException("Preparing for shutdown. Only stateless methods can be called.");
          }
          return executeMethodWithCaller(method, args, new ConnectorCaller() {
              @Override
              public Object call(Method method, Object[] args) throws ApplicationException {
                  return connector.executeSyncMethod(method, args);
              }
          });
      }