* @param currentModule - name of the current module
* @param logger
* @return a list of EntryPoint
*/
private final List<EntryPoint> getEntryPointsFromEntryPointSpecs (List<EntryPointSpec> entryPointSpecs, ModuleName currentModule, CompilerMessageLogger logger) {
Module cmod = program.getModule(currentModule);
ArrayList<SourceModel.FunctionDefn.Algebraic> adjunctSource = new ArrayList<SourceModel.FunctionDefn.Algebraic>();
int targetCount = 0;
ArrayList<EntryPointSpec> adjuntEntryPointSpecs = new ArrayList<EntryPointSpec> (entryPointSpecs.size());
for (final EntryPointSpec entryPointSpec : entryPointSpecs) {
String adjunctName = "rt_" + entryPointSpec.getFunctionalAgentName().getUnqualifiedName() + "_" + (targetCount++) + "_";
String baseAdjunctName = adjunctName;
int i = 0;
while (cmod.getFunction(adjunctName) != null) {
adjunctName = baseAdjunctName + (i++);
}
adjunctSource.add(
SourceModel.FunctionDefn.Algebraic.make(