if ( environment == null ) {
throw new IllegalArgumentException( "Environment cannot be null" );
}
CommandService commandService = (CommandService) buildCommandService( id, kbase, mergeConfig( configuration ), environment );
if (commandService instanceof SingleSessionCommandService) {
((SingleSessionCommandService) commandService).
addInterceptor(new ManualPersistInterceptor((SingleSessionCommandService) commandService));
try {
Class<?> clazz = Class.forName("org.jbpm.persistence.ManualPersistProcessInterceptor");