code: public MappedLdapGroup createMappedLdapGroup(final Team team, final String dn) {
          pm.currentTransaction().begin();
          final MappedLdapGroup mapping = new MappedLdapGroup();
          mapping.setTeam(team);
          mapping.setDn(dn);
          pm.makePersistent(mapping);
          pm.currentTransaction().commit();
          return getObjectById(MappedLdapGroup.class, mapping.getId());
      }
docs: Creates a MappedLdapGroup object.
  @param team The team to map
  @param dn the distinguished name of the LDAP group to map
  @return a MappedLdapGroup
  @since 1.4.0