Moved log4j properties file creation to instance definition