Adding support for GetSchema in both table and application modes