public class DefaultTourActivityFactory implements TourActivityFactory{
@Override
public AbstractActivity createActivity(Service service) {
AbstractActivity act;
if(service instanceof Pickup){
act = new PickupService((Pickup) service);
}
else if(service instanceof Delivery){
act = new DeliverService((Delivery) service);