if (page.getTotalResultSetSize() > 0) {
// Modify statement for action.
filterStatement.setQuery("WHERE userId = :userId");
// Create action.
DeleteUserTeamAssociations action = new DeleteUserTeamAssociations();
// Perform action.
UpdateResult result =
userTeamAssociationService.performUserTeamAssociationAction(action, filterStatement);