code: public void map(final User user, final Role role)
      {
          this.getRoleMappings().add(new RoleMapping(user, role));
      }
docs: Maps a user defined in a component to a role defined in the application.
  
  @param user
  The source user.
  @param role
  The target role.