/**
   * Method invoked when the user has clicked on delete button and the grid is in READONLY mode.
   *
   * @param persistentObjects value objects to delete (related to the currently selected rows)
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is
   *     successfully completed
   */
  public Response deleteRecords(ArrayList persistentObjects) throws Exception {
    AccountVO vo = null;
    for (int i = 0; i < persistentObjects.size(); i++) {
      vo = (AccountVO) persistentObjects.get(i);
      if (!vo.getCanDelACC02().booleanValue()) return new ErrorResponse("deleting not allowed");
    }

    return ClientUtils.getData("deleteAccounts", persistentObjects);
  }