/**
* Helper for creating a StatsConfig object to use as an operation
* parameter.
*/
protected StatsConfig getStatsConfig(Object[] params) {
StatsConfig statsConfig = new StatsConfig();
if ((params != null) && (params.length > 0) && (params[0] != null)) {
Boolean clear = (Boolean) params[0];
statsConfig.setClear(clear.booleanValue());
}
if ((params != null) && (params.length > 1) && (params[1] != null)) {
Boolean fast = (Boolean) params[1];
statsConfig.setFast(fast.booleanValue());
}
return statsConfig;
}