public AeEventTypeMappingState GetMappingNode(ServerSystemContext context, NodeId nodeId)
{
BaseObjectTypeState objectType = null;
if (!EventTypeNodes.TryGetValue(nodeId, out objectType))
{
return null;
}
AeEventTypeMappingState mappingNode = objectType as AeEventTypeMappingState;
if (mappingNode == null)
{
return null;
}
if (context.TypeTable.FindSubTypes(mappingNode.NodeId).Count == 0)
{
return null;
}
return mappingNode;
}