How to use wildcards in an Application object