public static Resource getDecisionTableResourceFromClasspath( final String resourceName, final Class classLoaderFromClass, final DecisionTableInputType type) { final Resource dtable = KieServices.Factory.get() .getResources() .newClassPathResource(resourceName, classLoaderFromClass); final DecisionTableConfiguration resourceConfig = new DecisionTableConfigurationImpl(); resourceConfig.setInputType(type); dtable.setConfiguration(resourceConfig); return dtable; }