}
private Map<String, String> parseUserDetails(Representation repr) throws JAXBException, IOException {
JAXBContext context = JAXBContext.newInstance(Authentication.class);
Unmarshaller unmarshaller = context.createUnmarshaller();
Authentication auth = (Authentication) unmarshaller.unmarshal(repr.getStream());
Map<String, String> authInfo = new HashMap<>();
authInfo.put("username", auth.getCredintals().getUsername());
authInfo.put("email", auth.getProfile().getEmail());
authInfo.put("firstName", auth.getProfile().getFirstName());
authInfo.put("lastName", auth.getProfile().getLastName());
authInfo.put("enabled", String.valueOf(auth.getProfile().isEnabled()));
return authInfo;
}