@Override
    public void delete(String roleId) throws RoleNotFoundException, NotAuthorizedException {
        securityContext.checkAdminPermissions();

        RoleBean bean = get(roleId);
        try {
            storage.deleteRole(bean);
        } catch (StorageException e) {
            throw new SystemErrorException(e);
        }
    }
@see IRoleResource#delete(java.lang.String)
manager/api/rest-impl/src/main/java/io/apiman/manager/api/rest/impl/RoleResourceImpl.java