public void rearrangeNodes()
{
try
{
TreeLocalHome tlh = getTreeLocalHome();
TreeLocal target = tlh.findByPrimaryKey("Child 2");
TreeLocal sibling = null;
sibling = tlh.findByPrimaryKey("Child 1");
/*
TreeLocal parent = tlh.findByPrimaryKey("Parent");
Collection coll = parent.getMenuChildren();
Iterator iter = coll.iterator();
sibling = (TreeLocal) iter.next();
*/
target.setMenuParent(sibling.getMenuParent());
target.setPrecededBy(sibling);
}
catch (NamingException n)
{
throw new EJBException(n);