}
protected IRelationObject getRelationObject(Object obj) {
try {
Object val = getter.invoke(obj);
IRelationObject rel = (IRelationObject)val;
if (rel == null && setter != null) {
rel = (IRelationObject) ret.newInstance();
setter.invoke(obj, rel);
}
if (rel != null)
rel.setManager(this, obj);
return rel;
} catch (Throwable e) {
log().t(name,obj,e);
}
return null;