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