@SuppressWarnings("unchecked")
    public static <T> T unmarshal(String src, Class<T> clazz) {
        T result = null;
        try {
            Unmarshaller avm = JAXBContext.newInstance(clazz).createUnmarshaller();
            result = (T) avm.unmarshal(new StringReader(src));
        } catch (JAXBException e) {
            Throwables.propagate(e);
        }
        return result;
    }
@SuppressWarnings("unchecked")
    public static <T> T unmarshal(String src, Class<T> clazz) {
        T result = null;
        try {
            Unmarshaller avm = JAXBContext.newInstance(clazz).createUnmarshaller();
            result = (T) avm.unmarshal(new StringReader(src));
        } catch (JAXBException e) {
            Throwables.propagate(e);
        }
        return result;
    }
@ SuppressWarnings ( "unchecked" ) public static < T > T unmarshal ( String src , Class < T > clazz ) { T result = null ; try { Unmarshaller avm = JAXBContext . newInstance ( clazz ) . createUnmarshaller ( ) ; result = ( T ) avm . unmarshal ( new StringReader ( src ) ) ; } catch ( JAXBException e ) { Throwables . propagate ( e ) ; } return result ; }
string -> object
string - > object