throw new IllegalStateException("Cannot get target bean instance", ex);
}
InjectionHelper.injectResources(targetBean, ep.getAttachment(InjectionsMetaData.class));
InjectionHelper.callPostConstructMethod(targetBean);
ep.addAttachment(PreDestroyHolder.class, new PreDestroyHolder(targetBean));
}
return targetBean;
}