class PreDeletionHookLoaderImpl implements PreDeletionHookLoader {

    @Override
    public PreDeletionHook createHook(PreDeletionHookConfiguration configuration) throws ClassNotFoundException {
        ClassName hookClass = new ClassName(configuration.getClazz());
        LOGGER.info("Loading user registered mailbox message deletionHook {}", hookClass);
        return genericLoader.instantiate(hookClass);
    }

    @Inject  PreDeletionHookLoaderImpl(GuiceGenericLoader guiceGenericLoader);

}