public Facet get(Type type, bool check)
{
object val = m_map[type];
if (val is Facet)
{
return((Facet)val);
}
if (val is string)
{
Facet f = decode(type, (string)val);
m_map[type] = f;
return(f);
}
if (check)
{
throw UnknownFacetErr.make(type.qname()).val;
}
return(null);
}