if (dataContext == null) {
Object dataContextHost = getDataContextHost();
if (dataContextHost != null) {
dataContext = UserData.getLocalDataContext(dataContextHost);
if (dataContext instanceof IDynamicBinding) {
IDynamicBinding dynamicBinding = (IDynamicBinding) dataContext;
Object boundSource = dynamicBinding.createBoundSource();
if (boundSource != null) {
dataContext = boundSource;
}
}
}