In method setFlowParameters it should be flowParameters.putAll(flowParam...

...) not flowParameters.get(flowParam)