Map<Object, Object> fromCache = session.getIdentityMapAccessor().getAllFromIdentityMapWithEntityPK(values, elementDescriptor);
DatabaseRecord translationRow = new DatabaseRecord();
List foreignKeyValues = new ArrayList(pks.length - fromCache.size());
CacheKeyType cacheKeyType = this.elementDescriptor.getCachePolicy().getCacheKeyType();
for (int index = 0; index < pks.length; ++index){
Object pk = pks[index];
if (!fromCache.containsKey(pk)){
if (cacheKeyType == CacheKeyType.CACHE_ID){
foreignKeyValues.add(Arrays.asList(((CacheId)pk).getPrimaryKey()));