Support any Java types for path and query parameters


We use a Java Class MyStringJavaType that has fromString() and toString() method, so i can be used in Jax-RS anotation as PathParam or QueryParam. CXF uses fromString() and toString() method to map String to MyStringJavaType and vice versa.
How can i use MyStringJavaType (which already exists as class in Java source) as PathParam/QueryParam? : Raml currently doesn’t allow other types than the basic types. So a major Java Web Framework Feature is not supported.