public void removePermission(String exp) throws Exception {
List<Object> list = new ArrayList<Object>();
UIPageIterator uiIterator = getChild(UIGrid.class).getUIPageIterator();
list.addAll(uiIterator.getPageList().getAll());
for (Object ele : list) {
Permission permission = (Permission) ele;
if (permission.getExpression().equals(exp)) {
list.remove(ele);
break;
}
}
uiIterator.setPageList(new SerializablePageList(Permission.class, list, 10));