if (componentApi != null) {
AWBindingApi bindingApi = componentApi.getBindingApi(bindingName());
if (bindingApi != null) {
// catch in case they failed to specify a "direction" on their <binding> tag
try {
bindingDirection = bindingApi.direction();
} catch (RuntimeException runtimeException) {
componentDefinition.addInvalidValueForBinding(validationContext, component, "direction", "binding tag: missing or invalid 'direction' attribute");
}
}