//the opaque output is then used as an input to another CAL function.
//Call the allPrimes and get the resulting infinite list as an opaque CAL Value
EntryPointSpec allPrimesSpec = EntryPointSpec.make(QualifiedName.make(CALPlatformTestModuleNames.M1, "allPrimes"), new InputPolicy[0], OutputPolicy.CAL_VALUE_OUTPUT_POLICY);
Object allPrimesResult = calServices.runFunction(allPrimesSpec, new Object[0]);
//Use List.Take to get 5 values from the primes list.
//As List.take is a polymorphic function we must specify the type of the CAL input
EntryPointSpec primesSpec = EntryPointSpec.make(QualifiedName.make(CAL_List.MODULE_NAME, "take"), new InputPolicy[] {
InputPolicy.DEFAULT_INPUT_POLICY,