{
parent = ParentUtil.getHome().create(PARENT_PK);
// Create some child beans
for (int i = 0; i < getBeanCount(); ++i)
parent.addChild(i, CHILD_FIELD1 + i, CHILD_FIELD2 + i);
}
catch (DuplicateKeyException e)
{
getLog().info("Parent bean already exists");