Update jaxrs possibility to use valueOf method

valueOf should be a static method that takes a String as a parameter and returns a constructed type instance.