code: private <E extends Event> EventHandler<E> wrapbuildHandler(final EventAdapter eventAdapter, final Class<? extends EventAdapter> adapterClass, final Class<? extends EventHandler<E>> handlerClass)
              throws CoreException {
          try {
              return handlerClass.getDeclaredConstructor(adapterClass).newInstance(eventAdapter);
          } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException e) {
              throw new CoreException("Impossible to build event handler " + handlerClass.getName() + " for the class " + this.getClass().getName(), e);
          }
      }
docs: Build an event handler by reflection to wrap the event adapter given.
  
  @param eventAdapter the instance of an eventAdapter
  @param adapterClass the adapter class used by the handler constructor
  @param handlerClass the handler class to build
  
  @return the required event handler
  
  @param <E> the Event type to manage
  
  @throws CoreException if an error occurred while creating the event handler