PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl(ResourceFactory.newByteArrayResource(str.getBytes()));
RuleBase rb = RuleBaseFactory.newRuleBase();
rb.addPackages(builder.getPackages());
StatelessSession ss = rb.newStatelessSession();
ss.execute(new Object[]{
new MyPerson("John", 20, Arrays.asList(
new MyPerson("John Jr 1st", 10, Arrays.asList(new MyPerson("John Jr Jr", 4, Collections.<MyPerson>emptyList()))),
new MyPerson("John Jr 2nd", 8, Collections.<MyPerson>emptyList())))
, new MyPerson("Jeff", 30, Arrays.asList(
new MyPerson("Jeff Jr 1st", 10, Collections.<MyPerson>emptyList()),