private static HashMap<String, String> parseParams(String trigParse) {
        HashMap<String, String> mapParams = new HashMap<String, String>();

        if (trigParse.length() == 0)
            throw new RuntimeException("TriggerFactory : registerTrigger -- trigParse too short");

        String params[] = trigParse.split("\\|");

        for (int i = 0; i < params.length; i++) {
            params[i] = params[i].trim();
        }

        for (String param : params) {
            String[] splitParam = param.split("\\$");
            for (int i = 0; i < splitParam.length; i++) {
                splitParam[i] = splitParam[i].trim();
            }

            if (splitParam.length != 2) {
                StringBuilder sb = new StringBuilder();
                sb.append("TriggerFactory Parsing Error in registerTrigger() : Split length of ");
                sb.append(param).append(" is not 2.");
                throw new RuntimeException(sb.toString());
            }

            mapParams.put(splitParam[0], splitParam[1]);
        }

        return mapParams;
    }