publicParts.append(
GenerationTemplates.templateLinkFunctionGeneralDef(GenerationTemplates.LinkFunctionType.Link));
publicParts.append(
GenerationTemplates.templateLinkFunctionGeneralDef(GenerationTemplates.LinkFunctionType.Unlink));
}
<BUG>if (stateMachineExporter.isOwnStateMachine()) {
</BUG>
publicParts.append(stateMachineExporter.createStateEnumCode());
privateParts.append(stateMachineExporter.createStateMachineRelatedHeadedDeclerationCodes());
if (stateMachineExporter.ownSubMachine()) {

publicParts.append(
GenerationTemplates.templateLinkFunctionGeneralDef(GenerationTemplates.LinkFunctionType.Link));
publicParts.append(
GenerationTemplates.templateLinkFunctionGeneralDef(GenerationTemplates.LinkFunctionType.Unlink));
}
if (stateMachineExporter.ownStateMachine()) {
publicParts.append(stateMachineExporter.createStateEnumCode());
privateParts.append(stateMachineExporter.createStateMachineRelatedHeadedDeclerationCodes());
if (stateMachineExporter.ownSubMachine()) {
