class BusinessObjectDefinitionHelper {

    public void processTagSearchScoreMultiplier(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
    {
        LOGGER.debug("processTagSearchScoreMultiplier " + businessObjectDefinitionEntity.getId() + " " +
            businessObjectDefinitionEntity.getBusinessObjectDefinitionTags());
        BigDecimal totalSearchScoreMultiplier =
            businessObjectDefinitionEntity.getBusinessObjectDefinitionTags().stream().filter(item -> item.getTag().getSearchScoreMultiplier() != null)
                .reduce(BigDecimal.ONE, (bd, item) -> bd.multiply(item.getTag().getSearchScoreMultiplier()), BigDecimal::multiply)
                .setScale(3, RoundingMode.HALF_UP);
        businessObjectDefinitionEntity.setTagSearchScoreMultiplier(totalSearchScoreMultiplier);
    }

}