final IMetaDataDomainContext context = MetaDataQueryContextFactory.getInstance().createTaglibDomainModelContext(file);
final ITaglibDomainMetaDataQuery query = MetaDataQueryFactory.getInstance().createQuery(context);
if (query != null) {
final Trait trait = query.getQueryHelper().getTrait(nsURI, element.getLocalName(), DTINFO_TRAIT_KEY);
if (trait != null) {
final DTInfo dtInfoModelObject = (DTInfo)trait.getValue();
if (dtInfoModelObject != null) {
dtInfo = new DefaultDTInfo(dtInfoModelObject, trait);
}
}
}