/** * Fill a builder with attribute values from the provided {@code Dependency} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Dependency.Builder createFrom(Dependency instance) { Objects.requireNonNull(instance, "instance"); Dependency.Type typeValue = instance.getType(); if (typeValue != null) { type(typeValue); } String idValue = instance.getId(); if (idValue != null) { id(idValue); } return (Dependency.Builder) this; }
.flatMap(dep -> { if (dep.isExtensionTag()) { List<Extension> extensions = this.loadExtensionsByTag(dep.getId());