{
String useCaseName = useCase.getName();
Collection allFinalStates = getModel().getStateMachines().getFinalState().refAllOfType();
for (final Iterator iterator = allFinalStates.iterator(); iterator.hasNext();)
{
FinalState finalState = (FinalState)iterator.next();
if (useCaseName != null)
{
if (useCaseName.equals(finalState.getName()))
{
finalStates.add(finalState);
}
else
{