hasOwnedFields = true;
} catch (Exception e) {
throw new SienaException(e);
}
}else if(related != null) {
String as = related.mappedBy();
// if related.as not specified, tries to find the first field with this type
if("".equals(as) || as == null){
ClassInfo fieldInfo = ClassInfo.getClassInfo(cl);
Field f = fieldInfo.getFirstFieldFromType(clazz);
if(f == null){