if (roleId > 0) {
role = RoleServiceUtil.getRole(roleId);
}
}
}
<BUG>else if (group.isOrganization()) {
</BUG>
long organizationId = group.getOrganizationId();
while (organizationId !=
OrganizationConstants.DEFAULT_PARENT_ORGANIZATION_ID) {

if (roleId > 0) {
role = RoleLocalServiceUtil.getRole(roleId);
}
}
else {
if (roleId > 0) {
role = RoleServiceUtil.getRole(roleId);
}
}
}
else if ((group != null) && group.isOrganization()) {
long organizationId = group.getOrganizationId();
while (organizationId !=
OrganizationConstants.DEFAULT_PARENT_ORGANIZATION_ID) {
