JCR-2768 throw exception instead of logging