int availableAmountShip = ship.getWare(ware).getAmount();
ITradingOffice office = city.getPlayer().findTradingOffice(city.getCity());
if (availableAmountShip>0 && office!=null){
int amount2Move = dialog.getAmount(availableAmountShip); // This is ware specific size
int avgPrice = ship.getWare(ware).getAVGPrice();
int moved = ship.unload(ware, amount2Move);
office.move(ware, moved,avgPrice);
}
}