class Person {

    public String getCarInsuranceName() {
        if (this.car.isPresent()) {
            Optional<Insurance> insurance = this.car.get().getInsurance();
            if (insurance.isPresent()) {
                Optional<String> name = insurance.get().getName();
                if(name.isPresent())
                    return name.get();
            }
        }
        return "Unknown";
        /*
        Car car = this.getCar();
        if (car != null) {
            Insurance insurance = car.getInsurance();
            if (insurance != null) {
                  return insurance.getName();
            }
        }
        return "Unknown";
        */
    }

}