private static void addTranslationToNodeDetailsToCollection(final String text, final ArrayList<Node> nodes, final boolean allowDuplicates, final List<StringToNodeCollection> translationStrings)
{
if (allowDuplicates)
{
translationStrings.add(new StringToNodeCollection(text).addNodeCollection(nodes));
}
else
{
final StringToNodeCollection stringToNodeCollection = findExistingText(text, translationStrings);
if (stringToNodeCollection == null)
translationStrings.add(new StringToNodeCollection(text).addNodeCollection(nodes));
else
stringToNodeCollection.addNodeCollection(nodes);
}
}