if(widget != null) {
Element element = widget.getElement();
if (isAccordionTrigger) {
element.setAttribute(Constants.DATA_TOGGLE, Constants.COLLAPSE);
element.removeAttribute(Constants.DATA_TARGET);
element.setAttribute("href", target);
if(parent != null && !parent.isEmpty()) {
setParent(parent);
}
Scheduler.get().scheduleDeferred(new ScheduledCommand() {