/** * Parses an xml string representing a {@link HostRegistration} * * @param xml * The serialized data * @return The HostRegistration */ public static HostRegistration parseXml(String xml) throws IOException { return parse(IOUtils.toInputStream(xml, "UTF-8")); }