/** * @see * org.kuali.ext.mm.service.ProfileService#saveCustomerProfile(org.kuali.ext.mm.businessobject.Profile) */ public void saveCustomerProfile(Profile profile) { if (profile.isPersonalUseIndicator()) { clearInternalUserInfo(profile); } if (profile.isProfileDefaultIndicator()) { Profile oldDefaultProfile = getDefaultCustomerProfile(profile.getPrincipalName()); if (oldDefaultProfile != null && !StringUtils.equals(oldDefaultProfile.getProfileId(), profile.getProfileId())) { oldDefaultProfile.setProfileDefaultIndicator(false); getBusinessObjectService().save(oldDefaultProfile); } profile.setActive(true); } getBusinessObjectService().save(profile); }