added log4j code