Book book;
if("chm".equals(type)) {
book = ChmParser.parseChm(VFSUtil.resolveFileObject(inputLocation), inputEncoding);
} else if ("epub".equals(type)) {
book = new EpubReader().readEpub(VFSUtil.resolveInputStream(inputLocation), inputEncoding);
} else {
book = FilesetBookCreator.createBookFromDirectory(VFSUtil.resolveFileObject(inputLocation), inputEncoding);
}
if(StringUtils.isNotBlank(coverImage)) {