private ContextDataHolder findByType(Context context, String scope, String name, Class<?> targetType) {
if (Context.class.isAssignableFrom(targetType)) {
return new ContextDataHolder<>(Context.class.getName(), ByTypeScope, context);
}
if (targetType.equals(ResourceBundleHelper.class)) {
return new ContextDataHolder<>(ResourceBundleHelper.class.getName(), ByTypeScope, new ResourceBundleHelper());
} else if (targetType.equals(ParamMapResourceBundleHelper.class)) {
return new ContextDataHolder<>(ParamMapResourceBundleHelper.class.getName(), ByTypeScope, new ParamMapResourceBundleHelper());
} else {
return null;
}