+ "<%2$s:with field='%3$s' type='%4$s.%5$s' />", BUNDLE_URI_SCHEME,
gwtPrefix, templateResourceName, bundleClass.getPackage().getName(),
bundleClass.getName());
// Try to find any bundle instance created with UiField.
OwnerField field = getOwnerClass().getUiFieldForType(bundleClass);
if (field != null) {
if (!templateResourceName.equals(field.getName())) {
die("Template %s has no \"xmlns:%s='urn:with:%s'\" for %s.%s#%s",
templatePath, field.getName(),
bundleClass.getQualifiedSourceName(),
uiOwnerType.getPackage().getName(), uiOwnerType.getName(),
field.getName());
}
if (field.isProvided()) {
return new BundleAttributeParser(bundleClass, "owner."
+ field.getName(), false);
}
}
// Try to find any bundle instance created with @UiFactory.
JMethod method = getOwnerClass().getUiFactoryMethod(bundleClass);