Fix: jaxrs possibility to use valueOf method as a parameter

valueOf should be a static method that takes a String as a parameter and returns a constructed type instance. Current implementation seems to be wrong