@Override public KModuleModel load(final Path path) { try { final org.kie.commons.java.nio.file.Path nioPath = paths.convert(path); final String content = ioService.readAllString(nioPath); return moduleContentHandler.toModel(content); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public KModuleModel loadKModule(final Path path) { return moduleContentHandler.toModel(ioService.readAllString(paths.convert(path))); }