public static String truncateCustomStatus(String customStatus){
  if (customStatus == null) {
    return customStatus;
  }
  return customStatus.length() > CUSTOM_STATUS_SIZE_BYTES ? customStatus.substring(0,CUSTOM_STATUS_SIZE_BYTES) : customStatus;
}

public static String truncateCustomStatus ( String customStatus ) { if ( customStatus == null ) { return customStatus ; } return customStatus . length ( ) > CUSTOM_STATUS_SIZE_BYTES ? customStatus . substring ( 0 , CUSTOM_STATUS_SIZE_BYTES ) : customStatus ; }
truncate the given custom status under custom_status_size_bytes bytes .
