code: public boolean removeUserFromTeam(final UserPrincipal user, final Team team) {
          final List<Team> teams = user.getTeams();
          if (teams == null) {
              return false;
          }
          boolean found = false;
          for (final Team t: teams) {
              if (team.getUuid().equals(t.getUuid())) {
                  found = true;
              }
          }
          if (found) {
              pm.currentTransaction().begin();
              teams.remove(team);
              user.setTeams(teams);
              pm.currentTransaction().commit();
              return true;
          }
          return false;
      }
docs: Removes the association of a UserPrincipal to a Team.
  @param user The user to unbind
  @param team The team to unbind
  @return true if operation was successful, false if not. This is not an indication of team disassociation,
  an unsuccessful return value may be due to the team or user not existing, or a binding that may not exist.
  @since 1.0.0