}
private Trait getTraitForEntityUsingContext(final String traitName) {
//look for trait on given entity
final Entity entity = getMetaDataContext().getEntity();
final IMetaDataDomainContext modelContext = getMetaDataDomainContext();
final IMetaDataQuery query = MetaDataQueryFactory.getInstance().createQuery(modelContext);
return query.getQueryHelper().getTrait(entity, traitName);
}