code: public final void configureAccess(final Template template, final ApplicationContext context) {
          final Configuration configuration = template.getConfiguration();
  
          AndAccessAssertion accessAssertion = context.getBean(AndAccessAssertion.class);
          accessAssertion.setPredicates(configuration.getAccessAssertion(), template.getAccessAssertion());
          this.access = accessAssertion;
      }
docs: Configure the access permissions required to access this print job.
  
  @param template the containing print template which should have sufficient information to
  configure the access.
  @param context the application context