code: @Override
      public DevCmdHistory[] command_inout_history_2(final String commandName, final int maxSize) throws DevFailed {
          MDC.setContextMap(contextMap);
          xlogger.entry();
          checkInitialization();
          deviceMonitoring.startRequest("command_inout_history_2 " + commandName);
          // TODO command_inout_history_2
          // returncommandHistory.get(command).toArray(n)
          return new DevCmdHistory[]{};
      }
docs: Command history. IDL 2 version.
  
  @param commandName the command name
  @param maxSize     the maximum depth of history
  @return the history
  @throws DevFailed