if(bo == null) {
// no bks defined
return null;
}
final Set<IBusinessKeyDefinition<E>> set = new HashSet<IBusinessKeyDefinition<E>>();
for(final BusinessKeyDef def : bo.businessKeys()) {
set.add(new BusinessKeyDefinition<E>(entityClass, def.name(), def.properties()));
}
return set;
}