}
public void update() throws ModelException
{
TradeKingForeman foreman = new TradeKingForeman();
XMLHandler handler = new XMLHandler();
try
{
response = foreman.makeAPICall(OrdersBuilder.preview(a.getId(), b.build().toString(), ResponseFormat.XML));
}
catch (ForemanException | UtilityException e)
{
throw new ModelException("Make API Call", e);
}
try
{
map = handler.parseMarketOrderPreview(response.toString());
}
catch (UtilityException e)
{
throw new ModelException("", e);
}