if (o != null && o instanceof InfoRole) { final InfoRole infoRole = (InfoRole) o; return getRoleType().compareTo(infoRole.getRoleType()); } return -1;
return (o instanceof Role) ? compareTo((Role) o) : -1;
    public int compareTo(Object o) {        if (o != null && o instanceof InfoRole) {            final InfoRole infoRole = (InfoRole) o;            return getRoleType().compareTo(infoRole.getRoleType());        }        return -1;    }