private boolean createBag(InterMineBag origBag, String newBagName, Profile profile) throws ObjectStoreException { // Clone method clones the bag in the database InterMineBag newBag = (InterMineBag) origBag.clone(); newBag.setDate(new Date()); newBag.setName(newBagName); profile.saveBag(newBagName, newBag); newBag.addBagValues(); return true; }