public override IEnumerable<FilteredRegistrationBase> GetBasedOnRegistrations(ITreeNode registrationRootElement)
{
IStructuralMatchResult match = Match(registrationRootElement);
if (match.Matched)
{
var matchedType = match.GetMatchedType("type") as IDeclaredType;
if (matchedType != null)
{
ITypeElement typeElement = matchedType.GetTypeElement();
if (typeElement != null)
{
yield return new StructureMapServiceRegistration(registrationRootElement, typeElement);
}
}
}
}