So, this seems to be the right way to add in lookupFields and resultFields, but does not support our new extension...
Cleaned up the upper parts of SubObjectCode.xml. Runs, but I still do not have the lookups and inquiries working...