Fix position of loggerFactory in log4j.xml
Fix unchecked warning in bootstrap.Main