class UserAssignedRolesExplorer extends UserAssignedEntitiesExplorer<Role> implements org.uberfire.ext.security.management.client.editor.user.UserAssignedRolesExplorer {

    @Override
    protected void removeEntity(String name) {
        // Remove the role from the local cache.
        Iterator<Role> roles = this.entities.iterator();
        while (roles.hasNext()) {
            final Role g = roles.next();
            if (g.getName().equals(name)) {
                roles.remove();
            }
        }

        // Reload view.
        doShow();

        // Fire the event for any others components listening.
        removeUserRoleEvent.fire(new OnRemoveUserRoleEvent(UserAssignedRolesExplorer.this,
                                                           name));
    }

    @Inject public  UserAssignedRolesExplorer(final ClientUserSystemManager userSystemManager,
                                     final ConfirmBox confirmBox,
                                     final RolesList rolesList,
                                     final AssignedEntitiesExplorer view,
                                     final Event<OnRemoveUserRoleEvent> removeUserRoleEvent);

}