import org.apache.cxf.pizza.types.OrderPizzaType;
public class PizzaImpl implements Pizza {
public OrderPizzaResponseType orderPizza(OrderPizzaType body, CallerIDHeaderType callerID) {
OrderPizzaResponseType resp = new OrderPizzaResponseType();
if (body.getToppings().getTopping().get(0).contains("NoHeader")) {
resp.setMinutesUntilReady(100);
} else {
resp.setMinutesUntilReady(100 + Integer.parseInt(callerID.getPhoneNumber()));
}
return resp;
}