can we do:
if(flowProcess.isDefined) {
  //avoid a closure since this should be as low overhead as possible:
  flowProcess.get.increment(group, name, amount)
}
else {
  logger.error("incrementing %s, %d, %s, but no FlowProcess".format(name, amount, group)
}