boolean hasActivities = false;
for(StateMachine sm : uClass.getStateMachines())
{
for (State state : sm.getStates())
{
<BUG>if (state.getActivity() != null)
{</BUG>
hasActivities = true;
stringBuffer.append(TEXT_325);
stringBuffer.append(gen.translate("type",uClass));

boolean hasActivities = false;
for(StateMachine sm : uClass.getStateMachines())
{
for (State state : sm.getStates())
{
for (Activity activity : state.getActivities())
{
hasActivities = true;
stringBuffer.append(TEXT_325);
stringBuffer.append(gen.translate("type",uClass));
