protected void txFragment(Session session) throws Exception {
// Remove related permissions
Policy policy = SecurityServices.lookup().getSecurityPolicy();
policy.removePermissions(instance);
policy.save();
for (Section section : sections) {
for (Panel panel : section.getAllPanels()) {
if (instance.getInstanceId().equals(panel.getInstanceId())) {
section.removePanel(panel);