I can change all logging and make it more generic (this logging above is also used a few lines lower), but then logging will loose the purpose I was writing it for. Please advise whether this is really required. If so, I can change all logging and make the plugin more generic.