code: public static void main(String[] args) throws Exception {
          Map map = getAllProperties(Class.forName(args[0]));
          Iterator keys = map.keySet().iterator();
          while (keys.hasNext()) {
              String key = (String)keys.next();
              PropertyDescriptor desc = (PropertyDescriptor)map.get(key);
              System.out.println(key + " = " + desc);
          }
      }
docs: Test program.