ObjectRepository.Component compParent = new ObjectRepository.Component();
compParent.setName("MetadataTest_parent");
compChild.setParentComponent(compParent);
broker.beginTransaction();
broker.store(compChild);
broker.commitTransaction();
Identity oid = new Identity(compChild, broker);
broker.clearCache();
compChild = (ObjectRepository.Component) broker.getObjectByIdentity(oid);