public boolean isAdmin(User user) { if (user == null) { return false; }  boolean superadmin = user.hasPermission(Permission.SUPERADMIN);  return superadmin;
public boolean isAdmin(Integer userId) { User user = m_coreContext.loadUser(userId); return isAdmin(user);
    public boolean isAdmin(User user) {        if (user == null) {            return false;        }                boolean superadmin = user.hasPermission(Permission.SUPERADMIN);        return superadmin;    }