there is a inputFormatMap also passed along here. Please see above : if there is a better way to refactor it, please do let us know !