int (String countStr, final ServiceMessage msg) { int count = 0; try { count = Integer.parseInt(countStr); } catch (NumberFormatException ex) { final String diagnosticInfo = msg.getAttributes().get(ATTR_KEY_DIAGNOSTIC); LOG.error(getTFrameworkPrefix(myTestFrameworkName) + "Parse integer error." + (diagnosticInfo == null ? "" : " " + diagnosticInfo), ex); } return count; }