Small JPKS Client refactorizing and adding a bit of logging