title: How can I refactor this method? (spring + java8)
body: <p>I am trying to refactor the Java class below. I have a method that saves a POJO (entity) depending on which instance it belongs to. </p>
  
  <p>The code below shows only 3 services but there is 13 service in total.
  Each service is calling a separate *RepositoryImpl.
  For instance,  the ActiviteService is an interface and the activiteService.create(activity) will call the implementation of that interface.</p>
  
  <pre><code>@Autowired
  private ActiviteService       activiteService;
  @Autowired
  private AdresseMsSanteService    adresseMsSanteService;
  @Autowired
  private AttributionParticuliereService     attributionParticuliereService;
  
  
  
  private boolean sauvegarder(Object object, Long idIdPlay, String game,
      Integer gameIndex) {
  
  
      boolean isSaved = false;
  
      if (idIdPlay == null) {
          throw new IllegalArgumentException("IdPlay id is null");
      }
  
      if (object instanceof Activite) {
          Activite activite = (Activite) object;
          activite.setIdIdPlay(idIdPlay);
          if (this.isGameOn(activite, game, gameIndex)) {
              activiteService.create(activite);
              isSaved = true;
          }
      } else if (object instanceof AdresseMsSante) {
          AdresseMsSante adresseMsSante = (AdresseMsSante) object;
          adresseMsSante.setIdIdPlay(idIdPlay);
          if (this.isGameOn(adresseMsSante, game, gameIndex)) {
              adresseMsSanteService.create(adresseMsSante);
              isSaved = true;
          }
      } else if (object instanceof AttributionParticuliere) {
          AttributionParticuliere attributionParticuliere = (AttributionParticuliere) object;
          attributionParticuliere.setIdIdPlay(idIdPlay);
          if (this.isGameOn(attributionParticuliere, game, gameIndex)) {
              attributionParticuliereService.create(attributionParticuliere);
              isSaved = true;
          }
      } else if 
  </code></pre>