package org.folio.okapi.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * A brief view of a ModuleDescriptor.
 *
 */
@JsonInclude(Include.NON_NULL)
public class ModuleDescriptorBrief {

  private String id;
  private String name;

  public ModuleDescriptorBrief() {
  }

  public ModuleDescriptorBrief(ModuleDescriptor m) {
    this.id = m.getId();
    this.name = m.getName();
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
}

@@ -189,16 +189,54 @@
 Include;
+%0Aimport org.folio.okapi.util.ModuleId;
 %0A%0A/**%0A *
@@ -760,10 +760,101 @@
 me;%0A  %7D%0A
+%0A  @JsonIgnore%0A  public String getProduct() %7B%0A    return new ModuleId(id).getProduct();%0A  
 %7D%0A
+%7D

Add ModuleDescriptorBrief.getProduct