public function groupFilter($characteristic, $percentage)
{
if (substr(trim($characteristic), 0, 3) === 'it.') {
$by = 'by{ ' . $characteristic . ' }';
} else {
$by = 'by( "' . $characteristic . '" )';
}
$this->addMethod('groupCount("gf").' . $by . '.cap("gf").sideEffect{ s = it.get().values().sum(); }.next().findAll{ it.value < s * ' . $percentage . '; }.keySet()');
return $this;
}