Add sonar support
Prevent NullPointerException

Do not load log4j xml file when it has not been found