EOQualifier gidQualifier = entity.qualifierForPrimaryKey(entity.primaryKeyForGlobalID(gid));
EOFetchSpecification gidFetchSpec = new EOFetchSpecification(entityName, gidQualifier, null);
NSMutableDictionary databaseSnapshotClone;
NSMutableDictionary memorySnapshotClone = snapshot.mutableClone();
EOAdaptorChannel channel = databaseContext.availableChannel().adaptorChannel();
channel.openChannel();
channel.selectAttributes(entity.attributesToFetch(), gidFetchSpec, false, entity);
try {
databaseSnapshotClone = channel.fetchRow().mutableClone();
}