[CXF-5944] Better support for multipart representations, patch from Alexey Markevich applied with modifications