vehicle = (Vehicle) theContext.getBean("tram");
}
vehicle.setRegistrationNumber(id);
System.out.println("This vehicle has registration number " + vehicle.getRegistrationNumber());
vehicle.setDeliveryDate(deliveryDate);
return (Vehicle) vehicle.clone();
}
/**
* Create scenario object based on type.
* This method needs to be updated in order to add new scenarios to TraMS.