Group group = new GroupImpl();
group.setName(this.newName);
group.setDescription(this.newDescription);
CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
Collection parentCollection = collectionBean.getSelectedCollection();
group.setParent(parentCollection);
GroupDao.createInstance().save(group);
this.newName = null;
this.newDescription = null;
ViewCollection viewCollection = new ViewCollection(CollectionDao.createInstance().retrieve(parentCollection.getId()));
collectionBean.setSelectedCollection(viewCollection);
this.collectionGroups = viewCollection.getGroupsModel();
}
return "";