Fixing potential NPE. Related to #3671
Using just java types in getLogger signature. Related to #3671