code: private static JaxbJsonSerializer<Map<String, String>> getPropsSerializer() {
          return new JaxbJsonSerializer<>((Class<Map<String, String>>) (Object)
              new HashMap<String, String>().getClass());
      }
docs: /*
  Creates a serializer for properties
  Note: The odd string of casts is necessary to make the command-line
  compiler happy.