* Convenience method to go from a get/set method to the
* associated relationship mapping.
*/
public RelationshipMapping getRelationshipForMethod(Method method) {
String methodName = method.getName();
FieldDescriptor fd = (FieldDescriptor) methodToProperty.get(methodName);
if (fd == null) return null;
return (RelationshipMapping) relationships.get(fd.name);
}