private void ConnectNodeToMap(Guid nodeId, Point location)
{
TypeManager typeManager = IoC.IoCContainer.GetInjectionInstance().GetInstance<TypeManager>();
IDescriptorTypeProxy toDescriptorTypeProxy = typeManager.GetDescriptorType("To");
IDescriptorTypeProxy fromDescriptorTypeProxy = typeManager.GetDescriptorType("From");
Dictionary<IDescriptorTypeProxy, Guid> nodes = new Dictionary<IDescriptorTypeProxy, Guid>();
nodes.Add(toDescriptorTypeProxy, FocalNodeId);
nodes.Add(fromDescriptorTypeProxy, nodeId);
IRelationshipTypeProxy relationshipTypeProxy = typeManager.GetRelationshipType("MapContainerRelationship");
ConnectNodesAsync(nodes, relationshipTypeProxy, location, string.Empty);
}