code: public Team createTeam(final String name, final boolean createApiKey) {
          pm.currentTransaction().begin();
          final Team team = new Team();
          team.setName(name);
          //todo assign permissions
          pm.makePersistent(team);
          pm.currentTransaction().commit();
          if (createApiKey) {
              createApiKey(team);
          }
          return getObjectByUuid(Team.class, team.getUuid(), Team.FetchGroup.ALL.name());
      }
docs: Creates a new Team with the specified name. If createApiKey is true,
  then {@link #createApiKey} is invoked and a cryptographically secure
  API key is generated.
  @param name The name of th team
  @param createApiKey whether or not to create an API key for the team
  @return a Team
  @since 1.0.0