public int addLineUp(LineUp lineup) throws SQLException
   {
      Groop in = lineup.getGroop();

      // Get the groop number
      int groopNumber = in.getNumber();
      if (groopNumber < 1)
         // Save the groop
         in.save();

      // Get the lineup number
      if (lineup.getLineUpNumber() == -1)
         return saveLineUp(lineup);
      else
         return lineup.getLineUpNumber();

   }