public static List<Function> getFunctions(List<IntegrationId> functionIds, IntegrationEntityLookup dataStore) {
List<Function> fcns = Lists.newArrayList();
for (IntegrationId id : functionIds) {
if (TransformationId.UNDEFINED_ID.equals(id) || WebServiceCallId.UNDEFINED_ID.equals(id)) {
fcns.add(new UndefinedFunction(id));
} else if (id instanceof IntegrationEntityId) {
fcns.add((Function) dataStore.getEntity((IntegrationEntityId) id));
}
}
return fcns;