* Tries to parse the string as an isolated typesafe-config object, tries to resolve it, and then calls
* {@link #decodeObject(String, Config)} with the resultant config and the passed in category. Pretty much just
* a convenience function for simple use cases that don't want to care about how ConfigFactory works.
*/
public <T> T decodeObject(@Nonnull String category, @Syntax("HOCON") @Nonnull String configText) {
PluginMap pluginMap = Preconditions.checkNotNull(pluginRegistry.asMap().get(category),
"could not find anything about the category %s", category);
Config config = ConfigFactory.parseString(configText).resolve();
return hydrateObject(null, pluginMap, null, config.root());
}