[CXF-5806] Very minor optimization