StatementExpressionIndex[] statementExpressionIndex = null;
int[] prefetchFieldNumbers = null;
if (useFetchPlan)
{
// Select the FetchPlan fields
FetchPlan fp = sm.getObjectManager().getFetchPlan();
fp.manageFetchPlanForClass(emd);
FetchPlanForClass fpc = fp.getFetchPlanForClass(emd);
int fieldNumbers[] = fpc.getFieldsInActualFetchPlan();
int fn[] = new int[fieldNumbers.length];
int prefetchFieldCount = 0;
int fieldCount = emd.getNoOfInheritedManagedMembers() + emd.getNoOfManagedMembers();