resource = lookupFieldResource(context, annotation.name(), resourceReference.getResourceType());
}
else if(resourceReference.supports(PersistenceUnit.class))
{
PersistenceUnit annotation = resourceReference.getAnnotation(PersistenceUnit.class);
resource = getPersistenceUnit(context, annotation.unitName(), resourceReference.getResourceType());
}
else if(resourceReference.supports(PersistenceContext.class))
{
PersistenceContext annotation = resourceReference.getAnnotation(PersistenceContext.class);
resource = getPersistenceContext(context, annotation.unitName(), resourceReference.getResourceType());