final String topicId = topicIDs[i].replaceAll(XMLPreProcessor.OPTIONAL_MARKER, "").trim();
final boolean optional = topicIDs[i].indexOf(XMLPreProcessor.OPTIONAL_MARKER) != -1;
try
{
final InjectionTopicData topicData = new InjectionTopicData(Integer.parseInt(topicId), optional);
retValue.add(topicData);
}
catch (final Exception ex)
{
/*
* these lists are discovered by a regular expression so we
* shouldn't have any trouble here with Integer.parse
*/
ExceptionUtilities.handleException(ex);
retValue.add(new InjectionTopicData(-1, false));
}
}
return retValue;
}