String host = attributes.getValue("host");
String type = attributes.getValue("type");
if (type.equals("rmi")) {
try {
// need to do this in two steps to prevent GC!!
rmiserver = new RMIServer(port, cspokerServer);
rmiserver.start();
} catch (AccessException e) {
logger.warn("Failed to start RMI server at port " + port, e);
} catch (RemoteException e) {
logger.warn("Failed to start RMI server at port " + port, e);