/**
*
*/
@SuppressWarnings("unchecked")
private Map<String, String> initKeyMap() {
Parameter keyMapParam = config.getParameter(CONFIG_PARAM_KEY_MAP);
if (keyMapParam != null) {
Object objValue = keyMapParam.getObjValue();
if(objValue instanceof Map<?, ?>) {
return (HashMap<String, String>) objValue;
} else {
Element keyMapParamElement = keyMapParam.getXml();
if(keyMapParamElement != null) {
return KeyMapDigester.digest(keyMapParamElement);
} else {
throw new SmooksException("Sorry, the key properties must be available as XML DOM. Please configure using XML.");