// find the corresponding descriptor.
Resource rdfType = rsc.getProperty(RDF.type).getResource();
ResourceDescriptor descriptor = metaContext.getDescriptor(rdfType);
if (descriptor == null) {
throw new DescriptorNotFoundException(rdfType);
}
return this.<T> createBean((Class<T>) descriptor.getBeanClass(), rsc);
}