onsstat, converted to use play and java.