// If the global weave for value holders is true, the use the value
// from usesIndirection. Otherwise, force it to false.
boolean usesIndirection = (m_project.enableLazyForOneToOne()) ? usesIndirection() : false;
if (usesIndirection && m_descriptor.usesPropertyAccess()) {
mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(getSetMethodName()));
} else {
mapping.setUsesIndirection(usesIndirection);
}
// Set the getter and setter methods if access is PROPERTY.