getEntityType = function(entityName, entities) {
    let entityFound = (entities || []).find(item => item.Name == entityName || item.Name == `${entityName}(interchangeable)`);
    if (entityFound && entityFound.Type !== undefined) return entityFound.Type
    // see if this one of the prebuilt type
    if (builtInTypes.consolidatedList.includes(entityName)) return EntityTypeEnum.PREBUILT
    return undefined;
}
Helper function to get entity type based on a name match
@param {String} entityName name of entity to look up type for.
@param {Object[]} entities collection of entities in the current application