import org.apache.camel.pizza.types.OrderPizzaType;
public class PizzaImpl implements Pizza {
public OrderPizzaResponseType orderPizza(OrderPizzaType body, CallerIDHeaderType callerID) {
OrderPizzaResponseType resp = new OrderPizzaResponseType();
if (callerID == null) {
resp.setMinutesUntilReady(100);
} else {
resp.setMinutesUntilReady(100 + Integer.parseInt(callerID.getPhoneNumber()));
}
return resp;
}