private List<?> getResultsPk(final String queryName, final Map<String, Object> map, final ObjectSpecification objectSpec) {
final Class<?> cls = objectSpec.getCorrespondingClass();
if(!JdoPropertyUtils.hasPrimaryKeyProperty(objectSpec)) {
throw new UnsupportedOperationException("cannot search by primary key for DataStore-assigned entities");
}
final OneToOneAssociation pkOtoa = JdoPropertyUtils.getPrimaryKeyPropertyFor(objectSpec);
final String pkOtoaId = pkOtoa.getId();
final String filter = pkOtoaId + "==" + map.get(pkOtoaId);
final Query jdoQuery = getPersistenceManager().newQuery(cls, filter);
if (LOG.isDebugEnabled()) {
LOG.debug("query: " + queryName + ", filter: " + filter);