I am not completely sure we should convert the entity table names here. I did this to make the names used consistent with the names that can be passed to the "getFor" function.