private int messageConvertReturnValue(String messageText,int defaultReturnCode){
  int i=0;
  for (  String workText : messageTextException) {
    if (workText == null) {
      return defaultReturnCode;
    }
    final int workTextLength=workText.length();
    if (messageText.regionMatches(0,workText,0,workTextLength)) {
      return returnValueException[i];
    }
    i++;
  }
  return defaultReturnCode;
}

private int messageConvertReturnValue ( String messageText , int defaultReturnCode ) { int i = 0 ; for ( String workText : messageTextException ) { if ( workText == null ) { return defaultReturnCode ; } final int workTextLength = workText . length ( ) ; if ( messageText . regionMatches ( 0 , workText , 0 , workTextLength ) ) { return returnValueException [ i ] ; } i ++ ; } return defaultReturnCode ; }
find the message in the list of known messages . convert message text to return value when message text matches string then return cause of error
