Source:
<code>public static BusinessServiceSearchCriteria fromMap(Map<String, String> map) { boolean filterByName = getBooleanForKey(map, "filterByName"); String nameValue = getStringForKey(map, "nameValue"); boolean filterByAttribute = getBooleanForKey(map, "filterByAttribute"); String attributeKey = getStringForKey(map, "attributeKey"); String attributeValue = getStringForKey(map, "attributeValue"); boolean filterBySeverity = getBooleanForKey(map, "filterBySeverity"); String severityValue = getStringForKey(map, "severityValue"); <START> if (severityValue == null || "".equals(severityValue)) { <END> severityValue = OnmsSeverity.WARNING.getLabel(); } String severityCompareOperator = BSMConfigHelper.getStringForKey(map, "severityCompareOperator"); if (severityCompareOperator == null || "".equals(severityCompareOperator)) { severityCompareOperator = BusinessServiceSearchCriteriaBuilder.CompareOperator.GreaterOrEqual.name(); } String orderBy = BSMConfigHelper.getStringForKey(map, "orderBy"); if (orderBy == null || "".equals(orderBy)) { orderBy = BusinessServiceSearchCriteriaBuilder.Order.Name.name(); } boolean orderAsc = BSMConfigHelper.getBooleanForKey(map, "orderAsc"); int resultsLimit = getIntForKey(map, "resultsLimit"); BusinessServiceSearchCriteriaBuilder b = new BusinessServiceSearchCriteriaBuilder(); if (filterByName) { b.name(nameValue); } if (filterByAttribute) { b.attribute(attributeKey, attributeValue); } if (filterBySeverity) { b.filterSeverity(BusinessServiceSearchCriteriaBuilder.CompareOperator.valueOf(severityCompareOperator), OnmsSeverity.get(severityValue)); } b.order(BusinessServiceSearchCriteriaBuilder.Order.valueOf(orderBy)); if (orderAsc) { b.asc(); } else { b.desc(); } return b.limit(resultsLimit) .order(BusinessServiceSearchCriteriaBuilder.Order.Name); }</code><technical_language>Please Strings.isEmptyOrNull(..)</technical_language>

Target:
public static BusinessServiceSearchCriteria fromMap(Map<String, String> map) { boolean filterByName = getBooleanForKey(map, "filterByName"); String nameValue = getStringForKey(map, "nameValue"); boolean filterByAttribute = getBooleanForKey(map, "filterByAttribute"); String attributeKey = getStringForKey(map, "attributeKey"); String attributeValue = getStringForKey(map, "attributeValue"); boolean filterBySeverity = getBooleanForKey(map, "filterBySeverity"); String severityValue = getStringForKey(map, "severityValue"); if (Strings.isNullOrEmpty(severityValue)) { severityValue = OnmsSeverity.WARNING.getLabel(); } String severityCompareOperator = BSMConfigHelper.getStringForKey(map, "severityCompareOperator"); if (Strings.isNullOrEmpty(severityCompareOperator)) { severityCompareOperator = BusinessServiceSearchCriteriaBuilder.CompareOperator.GreaterOrEqual.name(); } String orderBy = BSMConfigHelper.getStringForKey(map, "orderBy"); if (Strings.isNullOrEmpty(orderBy)) { orderBy = BusinessServiceSearchCriteriaBuilder.Order.Name.name(); } String orderSequence = BSMConfigHelper.getStringForKey(map, "orderSequence"); if (Strings.isNullOrEmpty(orderSequence)) { orderSequence = BusinessServiceSearchCriteriaBuilder.Sequence.Ascending.name(); } int resultsLimit = getIntForKey(map, "resultsLimit"); BusinessServiceSearchCriteriaBuilder b = new BusinessServiceSearchCriteriaBuilder(); if (filterByName) { b.name(nameValue); } if (filterByAttribute) { b.attribute(attributeKey, attributeValue); } if (filterBySeverity) { b.filterSeverity(BusinessServiceSearchCriteriaBuilder.CompareOperator.valueOf(severityCompareOperator), OnmsSeverity.get(severityValue)); } return b.order(BusinessServiceSearchCriteriaBuilder.Order.valueOf(orderBy)) .order(BusinessServiceSearchCriteriaBuilder.Sequence.valueOf(orderSequence)) .limit(resultsLimit) .order(BusinessServiceSearchCriteriaBuilder.Order.Name); }