public static String changeCase(String element){
  if (element == null) {
    return null;
  }
  if (WWNUtility.isValidWWN(element)) {
    return element.toUpperCase();
  }
 else {
    return element.toLowerCase();
  }
}

public static String changeCase ( String element ) { if ( element == null ) { return null ; } if ( WWNUtility . isValidWWN ( element ) ) { return element . toUpperCase ( ) ; } else { return element . toLowerCase ( ) ; } }
returns the endpoint with its case changed as appropriate fr its type . endpoints of type wwn are changed to be upper case . all other types are changed to lower case .
