code: public static ContextAwarePolicy createUserProvidedPublicationPolicy(PublicationData publicationData, Extender extender) {
          Util.notNull(publicationData, "Publication data");
          return new ContextAwarePolicyAdapter(new UserProvidedPublicationBasedVerificationPolicy(),
                  new PolicyContext(publicationData, extender != null ? extender.getExtendingService() : null));
      }
docs: Creates context aware policy using {@link UserProvidedPublicationBasedVerificationPolicy} for verification.
  If extender is set, signature is extended within verification process.
  
  @param publicationData
  User provided publication data.
  @param extender
  Extender.
  @return User provided publication based verification policy with suitable context.