import org.opensolaris.opengrok.configuration.RuntimeEnvironment;
import org.opensolaris.opengrok.web.Statistics;
import org.opensolaris.opengrok.web.Util;
<BUG>public class StatsMessage extends Message {
@Override
public byte[] apply(RuntimeEnvironment env) throws IOException, ParseException {
</BUG>
if (getText().equalsIgnoreCase("reload")) {
env.loadStatistics();
} else if (getText().equalsIgnoreCase("clean")) {

import org.opensolaris.opengrok.configuration.RuntimeEnvironment;
import org.opensolaris.opengrok.web.Statistics;
import org.opensolaris.opengrok.web.Util;
public class StatsMessage extends Message {
static final List<String> ALLOWED_OPTIONS = Arrays.asList(new String[]{"get", "reload", "clean"});
@Override
protected byte[] applyMessage(RuntimeEnvironment env) throws IOException, ParseException {
if (getText().equalsIgnoreCase("reload")) {
env.loadStatistics();
} else if (getText().equalsIgnoreCase("clean")) {
