public static boolean isPureRefAssoc(Viewable v) {
if (!(v instanceof AssociationDef)) {
return false;
}
AssociationDef assoc = (AssociationDef) v;
// embedded and no attributes/embedded links?
if (assoc.isLightweight() && !assoc.getAttributes().hasNext()
&& !assoc.getLightweightAssociations().iterator().hasNext()) {
return true;
}
return false;
}