private WrapperHandler getWapperHandler(String dataBindingId, boolean required) {
DataBinding dataBinding = dataBindingRegistry.getDataBinding(dataBindingId);
WrapperHandler wrapperHandler = dataBinding == null ? null : dataBinding.getWrapperHandler();
if (wrapperHandler == null && required) {
throw new TransformationException(
"No wrapper handler is provided for databinding: " + dataBindingId);
}
return wrapperHandler;
}