* Returns the first use-case this method can find with the given tagged value or hyperlink. Both arguments are used
* to look for the tagged value but only <code>value</code> is used to search for the hyperlink.
*/
static UseCase findUseCaseWithTaggedValueOrHyperlink(String tag, String value)
{
UseCase useCaseWithTaggedValue = null;
Collection useCases = getModel().getUseCases().getUseCase().refAllOfType();
for (final Iterator useCaseIterator = useCases.iterator(); useCaseIterator.hasNext() && useCaseWithTaggedValue ==
null;)
{
// loop over all use-cases
UseCase useCase = (UseCase)useCaseIterator.next();
if (isTagPresent(useCase, tag, value) || isHyperlinkPresent(useCase, value))
{
useCaseWithTaggedValue = useCase;
}
}