Bruce, I think the problem is that you are assuming schema and table names are case insensitive, and that null equals "". Try:
mrs=dbm.getTables(null,"APP",null,null); // not
(null,"app",null,null)
and
mrs=dbm.getImportedKeys(null,"APP","POLICY"); //
not ("","APP","policy")
Regards,
Peter Yuill
