class MavenAttributesHelper {

  static void setPomAttributes(final FluentComponent component, final Model model) {
    Map<String, Object> pomAttributes = new HashMap<>(component.attributes(NAME).backing());
    pomAttributes.put(P_PACKAGING, getPackaging(model));
    ofNullable(model.getName()).ifPresent(name -> pomAttributes.put(P_POM_NAME, name));
    ofNullable(model.getDescription()).ifPresent(desc -> pomAttributes.put(P_POM_DESCRIPTION, desc));
    component.withAttribute(NAME, pomAttributes);
  }

  private  MavenAttributesHelper();

}