realm = getUserRealm();
ClaimManager cman = realm.getClaimManager();
String[] claims = cman.getAllClaimUris();
UserStoreManager admin = realm.getUserStoreManager();
admin.deleteUserClaimValues(username, claims, profileName);
admin.deleteUserClaimValue(username, UserCoreConstants.PROFILE_CONFIGURATION,
profileName);
} catch (UserStoreException e) {
// Not logging. Already logged.
throw new UserProfileException(e.getMessage(), e);