refs intermine/apps-a-middleware#2