@Override
  public void uzyjForme(Forma forma) throws NoItemFound, ItemUsed {

    try {
      if (checkIfExistsAndFillResultSet(forma)) {
        int counter = getCounter();
        if (counter > 0) {
          updateCounter(counter - 1, forma);
        } else {
          throw new ItemUsed(forma.toString());
        }
      } else {
        throw new NoItemFound(forma.toString());
      }
    } catch (SQLException ex) {
      Logger.getLogger(FormaRepositoryDBImpl.class.getName()).log(Level.SEVERE, null, ex);
    }
  }