Fix for ESBJAVA3340

Since this method is called per message there will be overhead. Will print warn log if debug is enables