@Override public BillOfMaterialsDTO create(BillOfMaterialsDTO billOfMaterials) { LOGGER.info("Creating a new bill of materials entry with information: {}", billOfMaterials); BillOfMaterials persisted = BillOfMaterials.getBuilder() .description(billOfMaterials.getDescription()) .parts(billOfMaterials.getParts()) .build(); persisted = repository.save(persisted); LOGGER.info("Created a new bill of materials entry with information: {}", persisted); return convertToDTO(persisted); }