private void snipOutEntry(Entry entry,final Entry parent,boolean removeParentRelationship){
  final String previousId=entry.getPreviousSiblingId();
  if (previousId != null) {
    final Entry previous=getEntryById(previousId);
    previous.setNextSiblingId(entry.getNextSiblingId());
  }
 else {
    parent.setFirstChildId(entry.getNextSiblingId());
  }
  final String nextId=entry.getNextSiblingId();
  if (nextId != null) {
    final Entry next=getEntryById(nextId);
    next.setPreviousSiblingId(previousId);
  }
 else {
    parent.setLastChildId(previousId);
  }
}

private void snipOutEntry ( Entry entry , final Entry parent , boolean removeParentRelationship ) { final String previousId = entry . getPreviousSiblingId ( ) ; if ( previousId != null ) { final Entry previous = getEntryById ( previousId ) ; previous . setNextSiblingId ( entry . getNextSiblingId ( ) ) ; } else { parent . setFirstChildId ( entry . getNextSiblingId ( ) ) ; } final String nextId = entry . getNextSiblingId ( ) ; if ( nextId != null ) { final Entry next = getEntryById ( nextId ) ; next . setPreviousSiblingId ( previousId ) ; } else { parent . setLastChildId ( previousId ) ; } }
helper method . removes an entry from its parent and siblings , but not from its children . the user ' s entitlements must be checked before calling this method .
