}
public RemoteServerContext login(String username, String password)
throws RemoteException, LoginException {
XmlActionSerializer serializer = createXmlActionSerializer(username,password);
XmlServerListenerTree listenerTree = new XmlServerListenerTree();
CallSynchronizer callSynchronizer = new CallSynchronizer(listenerTree,serializer);
try {
callSynchronizer.perform(new LoginAction(new EventId(), username, password));
} catch (IllegalActionException exception) {
throw new LoginException(exception.getMessage());