public static void main(String[] args) {
        ClassTypeCapture<Building> ctt1 = new ClassTypeCapture<Building>(Building.class);
        System.out.println("Building : Building " + ctt1.f(new Building()));
        System.out.println("Building : House " + ctt1.f(new House()));

        ClassTypeCapture<House> ctt2 = new ClassTypeCapture<House>(House.class);
        System.out.println("House : Building " + ctt2.f(new Building()));
        System.out.println("House: House " + ctt2.f(new House()));
    }