public String getWorksheetId(ICommand c) {
    try {
      Method getWorksheetIdMethod = c.getClass().getMethod("getWorksheetId");
      String worksheetId = (String) getWorksheetIdMethod.invoke(c, (Object[]) null);
      return worksheetId;
    } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {

    }
    return null;
  }
 public void addCommandToHistory(ICommand command) {
   commandTagListHashMap.get(command.getTagFromPriority()).add(command);
 }