code: public void createAppToSecurityRolesMapping(String appName, Collection<SecurityRole> securityRoles) {
          //only add it if we don't have a cached copy
          appToSecurityRolesMap.putIfAbsent(appName, securityRoles);
      }
docs: Creates the application to security roles mapping for a given application.
  
  @param appName the name of the application for which the mappings belong to.
  @param securityRoles the security roles of the application.