public void processRequest(ObjectInputStream in, ObjectOutputStream out) {
AuthenticationRequest req = new AuthenticationRequest();
AuthenticationResponse res = new AuthenticationResponse();
try {
req.readExternal(in);
String securityRealm = req.getRealm();
String username = req.getUsername();
String password = req.getCredentials();