if(!state.getLeft().getAccountContext().hasPassword(credentials.getRight())){
throw new LoginException("Bad Password");
}
Unmarshaller um = AllHTTPJAXBContexts.context.createUnmarshaller();
HTTPRequest request = (HTTPRequest) um.unmarshal(new InputSource(http.getRequestBody()));
HTTPResponse response = request.performRequest(state.getLeft(), state.getRight());
StringWriter xml = new StringWriter();
Marshaller m = AllHTTPJAXBContexts.context.createMarshaller();
m.setProperty(Marshaller.JAXB_FRAGMENT, true);
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);