entryActions.append(StringFormatter.format("case {0}:",gen.translate("stateOne",state)));
}
hasEntry = true;
hasThisEntry = true;
isFirstEntry = false;
<BUG>entryActions.append(StringFormatter.format("\n        {1} = new DoActivityThread(this,\"{0}\");",gen.translate("doActivityMethod",state),gen.translate("doActivityThread",state)));
</BUG>
}
if (hasThisEntry)
{

entryActions.append(StringFormatter.format("case {0}:",gen.translate("stateOne",state)));
}
hasEntry = true;
hasThisEntry = true;
isFirstEntry = false;
entryActions.append(StringFormatter.format("\n        {1} = new DoActivityThread(this,\"{0}\");",gen.translate("doActivityMethod",activity),gen.translate("doActivityThread",activity)));
}
if (hasThisEntry)
{
