public Migration read ( ) { try ( StringReader reader = new StringReader ( info . getModelDiff ( ) ) ) { JAXBContext jaxbContext = JAXBContext . newInstance ( Migration . class ) ; Unmarshaller unmarshaller = jaxbContext . createUnmarshaller ( ) ; return ( Migration ) unmarshaller . unmarshal ( reader ) ; } catch ( JAXBException e ) { throw new RuntimeException ( e ) ; } }
Read and return the migration from the resource .