added log4j xml and JavaConfig Stlye