private String calculateName(Class<? extends IVersionedApimanEvent> klazz) {
        if (klazz.isAnnotationPresent(ApimanEvent.class)) {
            ApimanEvent anno = klazz.getAnnotation(ApimanEvent.class);
            LOGGER.debug("Found annotation {0} for {1}", anno, klazz.getCanonicalName());
            if (!"".equals(anno.name())) {
                return anno.name();
            } else {
                return klazz.getCanonicalName();
            }
        } else {
            return klazz.getCanonicalName();
        }
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/rest-impl/src/main/java/io/apiman/manager/api/events/EventFactory.java