class DefaultErrorListener implements ErrorListener {

    @Override
    public void onProhibitedInstallHookRegistration(final PackageId packageId) {
        reportViolation(
                new SimpleViolation(Severity.MAJOR,
                        getString("Policy prohibits the use of InstallHooks in packages"), packageId));
    }

}