}
}
public AdminCommandContext loadAdminCommandContext(File contextFile, Outbound outbound) throws IOException, ClassNotFoundException {
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(contextFile));
AdminCommandContext context = (AdminCommandContext) ois.readObject();
ois.close();
File outboundFile = new File(contextFile.getAbsolutePath() + ".outbound");
loadOutbound(outbound, outboundFile);
context.setOutboundPayload(outbound);
File inboundFile = new File(contextFile.getAbsolutePath() + ".inbound");
Inbound inbound = loadInbound(inboundFile);
context.setInboundPayload(inbound);
return context;
}