try{
startTx(em);
Site site = em.find(Site.class, pkey);
Store store = new Store();
store.setPartyId(pkey);
store.setStoreDescription("storeDescription");
store.setStoreName("storeName");
store.setStatus("1");
store.setArchiveStatus("1");
store.setCreateDate(new Date());
store.setSiteId(site.getPartyId());
store.setSite(site);
List<Store> stores = new ArrayList<Store>();
stores.add(store);
site.setStores(stores);