only create log4j if it doesn't exist. this will let gateway side execution to specify it's own configuration