code: public void map(final Group group, final Role role)
      {
          try
          {
              this.addRoleMapping(new RoleMapping(group, role));
          }
          catch(final RepositoryException e)
          {
              throw new RuntimeException("Found unexpected exception while adding role mapping", e);
          }
      }
docs: Maps a group defined in a component to a role defined in the application.
  
  @param group
  The source group.
  @param role
  The target role.