@EventHandler(priority = EventPriority.NORMAL)
    public void onProjectileLaunch (ProjectileLaunchEvent event)
      {
        Projectile projectile = event.getEntity();
        if (projectile.getType() != EntityType.THROWN_EXP_BOTTLE
            || ! (projectile.getShooter() instanceof Player))
          return;
        Player player = (Player) projectile.getShooter();
        ItemStack item = player.getInventory().getItemInHand();
        if (item.getType() != Material.EXP_BOTTLE)
          return;
        ItemMeta meta = item.getItemMeta();
        if ( !meta.hasLore())
          return;
        for (String s : meta.getLore())
          {
            if (s == null)
              return;
            if (s.startsWith("Level "))
              {
                projectile.setMetadata("expbottlelevel", new LevelMetadata(
                    Integer.parseInt(s.substring(s.indexOf(' ') + 1))));
              }
          }
      }