private static boolean checkNumericFieldValue(final String value) {
    if (value == null) {
      return true;
    }
    try {
      final String portString = value.trim();
      if (portString.length() > 0) {
        Integer.valueOf(portString);
      }
    }
    catch (NumberFormatException e) {
      return false;
    }
    return true;
  }
private static boolean checkNumericFieldValue(final String value)