Modifications to StatisticsExample.java to make to working.
Merge pull request #1 from d3vel0per/bug/cachestatistics

Modifications to StatisticsExample.java to make it working.