[CXF-5929] Using a double dot convention to pass the parameterized types
[CXF-5846] Updating binary and source providers to throw InternalServerError in case of ClassCastException, patch from Iris Ding applied