*
* @see #selectFragmentForSaving(Object)
*/
public String saveFragmentHere(Object object) {
log.info("Saving " + selectedFragment + " to " + object);
Node target = (Node) object;
TreeNode clone = selectedFragment.clone();
clone.setName(tempNode.getName());
clone.setDescription(tempNode.getDescription());
target.addChild(clone);
clone.touchAll(user.getUsername()); // the newly added TreeNode should be touched.
//FacesMessages.instance().add(FacesMessage.SEVERITY_INFO, "Successfully stored node \"" + selectedFragment.getName() + "\" into fragment library as a child node of \"" + ((Node) object).getName() + "\"");
em.persist(em.merge(target));
fragmentOperationCompleted();