final StringBaseEntitySubTwo stringBaseEntitySubTwo = factory.newPolySubClassTwo();
stringBaseEntitySubTwo.setStringBase("PolySubClassTwo 1");
stringBaseEntitySubTwo.setStringClassTwo("Class 2");
final StringBaseEntitySubThree stringBaseEntitySubThree = factory.newPolySubClassThree();
stringBaseEntitySubThree.setStringBase("PolySubClassThree 1");
stringBaseEntitySubThree.setStringClassThree("Another String");
stringBaseEntitySubThree.setStringClassTwo("Class 3");
referencingPolyTypesEntity.getPolyBaseClasses().add(stringBaseEntitySub);
referencingPolyTypesEntity.getPolyBaseClasses().add(stringBaseEntitySubTwo);
referencingPolyTypesEntity.getPolyBaseClasses().add(stringBaseEntitySubThree);