Don't use the 3.0 only API if the 2.5.x version will work

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1519747 13f79535-47bb-0310-9956-ffa450edef68