boolean (int messageLength) { int threshold = 10000; try { final String property = System.getProperty(MESSAGE_LENGTH_FOR_PATTERN_MATCHING); if (property != null) { try { threshold = Integer.parseInt(property); } catch (NumberFormatException ignore) {} } } catch (SecurityException ignored) {} return messageLength < threshold; }