/** * Checks whether the specified offering has a envelope. * * @param offering the offering * * @return {@code true} if it has a envelope */ default boolean hasEnvelopeForOffering(String offering) { return Optional.ofNullable(getEnvelopeForOffering(offering)) .filter(ReferencedEnvelope::isSetEnvelope).isPresent(); }