Document d = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(connection.getInputStream());
return OsmServerUserInfoReader.buildFromXML(d);
} catch(SAXException | ParserConfigurationException e) {
throw new XmlParsingException(e);
} catch(IOException e) {
throw new OsmTransferException(e);
} catch(OAuthException e) {
throw new OsmOAuthAuthorizationException(e);
} finally {
DefaultAuthenticator.getInstance().setEnabled(authenticatorEnabled);
}