beanDefinition.addPropertyValue("exportName", id);
}
if (hasExportName) {
if (hasFilterExpression) {
throw new BeanDefinitionValidationException("The 'exportName' attribute has been specified, which cannot be used with the 'filterExpression' attribute " + inNameString("import"));
}
if (!hasProxyTypes && !hasExportTypes) {
throw new BeanDefinitionValidationException("The 'exportName' attribute has been specified, requiring also that the 'proxyTypes' be specified" + inNameString("import"));
}
} else {
if (!hasProxyTypes && !hasExportTypes) {
throw new BeanDefinitionValidationException("Either 'exportTypes' or 'proxyTypes' must be specified" + inNameString("import"));
}
}
}