@Override
 public void spaceRemoved(SpaceLifeCycleEvent event) {
   IndexingService indexingService = CommonsUtils.getService(IndexingService.class);
   indexingService.unindex(SpaceIndexingServiceConnector.TYPE, event.getSpace().getId());
   LOG.debug("Handle un-index for removing space !");
 }
 private void reindex(SpaceLifeCycleEvent event) {
   IndexingService indexingService = CommonsUtils.getService(IndexingService.class);
   indexingService.reindex(SpaceIndexingServiceConnector.TYPE, event.getSpace().getId());
 }
 @Override
 public void spaceCreated(SpaceLifeCycleEvent event) {
   IndexingService indexingService = CommonsUtils.getService(IndexingService.class);
   indexingService.index(SpaceIndexingServiceConnector.TYPE, event.getSpace().getId());
   LOG.debug("Handled create index for newly created space!");
 }