long (final String countStr, @NotNull final ServiceMessage msg) { long count = 0; try { count = Long.parseLong(countStr); } catch (NumberFormatException ex) { final String diagnosticInfo = msg.getAttributes().get(ATTR_KEY_DIAGNOSTIC); LOG .error(getTFrameworkPrefix(myTestFrameworkName) + "Parse long error." + (diagnosticInfo == null ? "" : " " + diagnosticInfo), ex); } return count; }