private String createKeywordDisplayName(TaxonKeyword keyword){
  String combined=null;
  if (keyword != null) {
    String scientificName=StringUtils.trimToNull(keyword.getScientificName());
    String commonName=StringUtils.trimToNull(keyword.getCommonName());
    if (scientificName != null && commonName != null) {
      combined=scientificName + " (" + commonName+ ")";
    }
 else     if (scientificName != null) {
      combined=scientificName;
    }
 else     if (commonName != null) {
      combined=commonName;
    }
  }
  return combined;
}

private String createKeywordDisplayName ( TaxonKeyword keyword ) { String combined = null ; if ( keyword != null ) { String scientificName = StringUtils . trimToNull ( keyword . getScientificName ( ) ) ; String commonName = StringUtils . trimToNull ( keyword . getCommonName ( ) ) ; if ( scientificName != null && commonName != null ) { combined = scientificName + " (" + commonName + ")" ; } else if ( scientificName != null ) { combined = scientificName ; } else if ( commonName != null ) { combined = commonName ; } } return combined ; }
construct display name from taxonkeyword ' s scientific name and common name properties . it will look like : scientific name ( common name ) provided both properties are not null .
