private void initForEntry(BaseEntry entry, RSSFeed feed) {
        if (entry == null) {
            throw new NullPointerException("the arg: entry can not be null");
        }

        if (StringUtils.isEmpty(entry.getLink())) {
            throw new IllegalArgumentException("the arg:entry's property: link can not be null or empty");
        }

        String fullPath = this.getEntryPath(feed, entry);

        boolean dirExists = helper.isPathExists(fullPath);
        if (!dirExists) {
            boolean success = new File(fullPath).mkdir();

            if (!success) {
                throw new RuntimeException("create dir failed at path:" + fullPath);
            }
        }
    }