public void sendActionRequest(ActionRequestDMO request, ResponseHandlerIF handler, ErrorOptionsEnum rpc, ErrorOptionsEnum dmp){
if (sessionID == null){
throw(new IllegalStateException("Attempted to send action request but we're not logged in."));
}
else{
ActionResponseCallback cb = new ActionResponseCallback(request, handler, this, rpc, dmp);
checkRequestID(request);
requests.put(request.getNthRequestID(0), cb);
dmpConnection.action(request, cb);
lastRequestTime = System.currentTimeMillis();
}