WOAssociation association;
if (keyPath.charAt(0) == '^') {
association = new WOHelperFunctionBindingNameAssociation(keyPath);
}
else if (_keyPathIsReadOnly(keyPath)) {
association = new WOReadOnlyKeyValueAssociation(keyPath);
}
else {
association = new WOHelperFunctionKeyValueAssociation(keyPath);
}
return association;