}
keyField = f;
}
}
if (isSingleton) {
if ( ! r.collectionName().isEmpty()) {
throw new IllegalArgumentException(c.getName() + " @NamedResource isSingleton & collectionName");
}
owningCollectionName = null;
} else {
owningCollectionName = (r.collectionName().isEmpty() ? defaultCollectionName(c) : r.collectionName());