TEIID-2471 TEIID-2327 adding the ability to grant permissions via the
MetadataFactory and refining security logic