public OverlayElement CreateElementFromFactory( string typeName, string instanceName )
{
if ( !_elementFactories.ContainsKey( typeName ) )
{
throw new AxiomException( "Cannot locate factory for element type '{0}'", typeName );
}
// create the element
return ( (IOverlayElementFactory)_elementFactories[ typeName ] ).Create( instanceName );
}