private static Unmarshaller newUnmarshaller() {
return JAXBHelper.newUnmarshaller(newContext(ObjectFactory.class));
}
private static Geonames unmarshal(StringReader reader) throws JAXBException {
Geonames result = null;
try {
result = (Geonames) newUnmarshaller().unmarshal(reader);
} catch (ClassCastException e) {
throw new JAXBException("Parse error: " + e, e);
}