// Engine
KnowledgeRuntimeLoggerFactory.newConsoleLogger(ksession);
// Create a Person
Person person = new Person("Salaboy!");
// Create a Pet
Pet pet = new Pet("mittens", "on a limb", Pet.PetType.CAT);
// Set the Pet to the Person
person.setPet(pet);
// Now we will insert the Pet and the Person into the KnowledgeSession
ksession.insert(pet);
ksession.insert(person);