Removing unnecessary jars and log4j toString() setting