// Get the default profile from the config...
defaultMessageProfile = configTree.getAttribute(Properties.MESSAGE_PROFILE, Profile.DEFAULT_PROFILE);
// Create the Smooks PayloadProcessor...
String resultTypeConfig = configTree.getAttribute("resultType", "STRING");
ResultType resultType;
try {
resultType = ResultType.valueOf(resultTypeConfig);
} catch(IllegalArgumentException e) {
throw new ConfigurationException("Invalid 'resultType' config value '" + resultTypeConfig + "'. Valid values are: " + Arrays.asList(ResultType.values()));
}