class KiePMMLSessionUtils {

    StatelessKieSession getKieSession(final KieBase knowledgeBase) {
        StatelessKieSession toReturn;
        try {
            toReturn = knowledgeBase.newStatelessKieSession();
            if (toReturn == null) {
                throw new KiePMMLException("Failed to create KieSession for model " + modelName);
            }
            return toReturn;
        } catch (Throwable t) {
            throw new KiePMMLException("Failed to create KieSession for model " + modelName, t);
        }
    }

    private  KiePMMLSessionUtils(final KieBase knowledgeBase, final String modelName, final String packageName, final PMML4Result pmml4Result);

}