if (manager.getReadAheadCache().getPreloadDataMap(args[0], false) != null) {
// copy pk [JBAS-1361]
Object pk = null;
JDBCFieldBridge[] pkFields = manager.getEntityBridge().getPrimaryKeyFields();
for (int i = 0; i < pkFields.length; ++i) {
JDBCAbstractCMPFieldBridge pkField = ((JDBCAbstractCMPFieldBridge) pkFields[i]);
Object fieldValue = pkField.getPrimaryKeyValue(args[0]);
pk = pkField.setPrimaryKeyValue(pk, fieldValue);
}
return Collections.singletonList(pk != null ? factory.getEntityObject(pk) : null);
}
return super.execute(finderMethod, args, ctx, factory);