private String getQuery(QueryType queryType, HashMap<String,String> queryPropertiesMap) {
        String sql = null;
        switch (queryType)  {
            case IDEA:
                sql = loadQuery(queryPropertiesMap.get("query.location"), queryType.name());
                sql = replaceFromTimeToTime(sql, queryPropertiesMap.get("query.idea.from_time"));
                break;
            case COMMENT:
                sql = loadQuery(queryPropertiesMap.get("query.location"), queryType.name());
                sql = replaceFromTimeToTime(sql, queryPropertiesMap.get("query.comment.from_time"));
                break;
            case REPLY:
                sql = loadQuery(queryPropertiesMap.get("query.location"), queryType.name());
                sql = replaceFromTimeToTime(sql, queryPropertiesMap.get("query.reply.from_time"));
                break;
            case TELL_A_FRIEND:
                sql = loadQuery(queryPropertiesMap.get("query.location"), queryType.name());
                sql = replaceFromTimeToTime(sql, queryPropertiesMap.get("query.tellafriend.from_time"));
                break;
            case REVIEW:
                sql = loadQuery(queryPropertiesMap.get("query.location"), queryType.name());
                sql = replaceFromTimeToTime(sql, queryPropertiesMap.get("query.review.from_time"));
                break;
            case EMAIL_HISTORY:
                sql = loadQuery(queryPropertiesMap.get("query.location"), queryType.name());
                sql = replaceFromTimeToTime(sql, queryPropertiesMap.get("query.emailhistory.from_time"));
                break;
            case TESTIMONIAL:
                sql = loadQuery(queryPropertiesMap.get("query.location"), queryType.name());
                sql = replaceFromTimeToTime(sql, queryPropertiesMap.get("query.testimonial.from_time"));
                break;
        }
        return sql;
    }