http://ofbiz.116.s1.nabble.com/jira-Commented-OFBIZ-7129-Recognise-BASE-TABLE-table-type-in-metadata-tp4699269.html
I've finally got back to this. There was one more change needed. I'm now happy with this and if there are no objections I'll commit in a few days.