String fetchspecName = (String) d2wContext().valueForKey("restrictingFetchSpecification");
if (fetchspecName != null) {
if (ds instanceof EODatabaseDataSource) {
EOFetchSpecification fs = ((EODatabaseDataSource) ds).entity().fetchSpecificationNamed(fetchspecName);
if (fs != null) {
fs = (EOFetchSpecification) fs.clone();
}
((EODatabaseDataSource) ds).setFetchSpecification(fs);
}
}
if (sortOrderings == null) {