code: @Override
      public DevCmdInfo[] command_list_query() throws DevFailed {
          MDC.setContextMap(contextMap);
          xlogger.entry();
          // checkInitialization();
          deviceMonitoring.startRequest("command_list_query");
          // Retrieve number of command and allocate memory to send back info
          final List<CommandImpl> cmdList = getCommandList();
          Collections.sort(cmdList);
          final DevCmdInfo[] back = new DevCmdInfo[commandList.size()];
          int i = 0;
          for (final CommandImpl cmd : cmdList) {
              final DevCmdInfo tmp = new DevCmdInfo();
              tmp.cmd_name = cmd.getName();
              tmp.cmd_tag = cmd.getTag();
              tmp.in_type = cmd.getInType().getTangoIDLType();
              tmp.out_type = cmd.getOutType().getTangoIDLType();
              tmp.in_type_desc = cmd.getInTypeDesc();
              tmp.out_type_desc = cmd.getOutTypeDesc();
              back[i++] = tmp;
          }
          xlogger.exit();
          return back;
      }
docs: Query all commands details. IDL 1 version
  
  @return the commands details of this device
  @throws DevFailed