private void resetParameter() {
    if (getWindow() != null) {
      return;
    }

    if (getSelectedItem() == null) {
      return;
    }
    GlusterVolumeOptionEntity selectedOption = getSelectedItem();

    ConfirmationModel model = new ConfirmationModel();
    setWindow(model);
    model.setTitle(ConstantsManager.getInstance().getConstants().resetOptionVolumeTitle());
    model.setHelpTag(HelpTag.reset_option);
    model.setHashName("reset_option"); // $NON-NLS-1$
    model.setMessage(ConstantsManager.getInstance().getConstants().resetOptionVolumeMsg());

    ArrayList<String> list = new ArrayList<String>();
    list.add(selectedOption.getKey());
    model.setItems(list);

    UICommand okCommand =
        UICommand.createDefaultOkUiCommand("OnResetParameter", this); // $NON-NLS-1$
    model.getCommands().add(okCommand);
    UICommand cancelCommand = UICommand.createCancelUiCommand("OnCancel", this); // $NON-NLS-1$
    model.getCommands().add(cancelCommand);
  }
  @Override
  public boolean equals(Object obj) {
    if (!(obj instanceof GlusterVolumeOptionEntity)) {
      return false;
    }

    GlusterVolumeOptionEntity option = (GlusterVolumeOptionEntity) obj;
    return (getId().equals(option.getId())
        && (volumeId != null && volumeId.equals(option.getVolumeId()))
        && key.equals(option.getKey())
        && value.equals(option.getValue()));
  }