BS-7731, thread were not stopped because of we never closed hibernate session factory

Conflicts:
	bpm/bonita-core/bonita-process-engine/src/main/java/org/bonitasoft/engine/api/impl/PlatformAPIImpl.java
BS-7731, do not throw exception when a work did not succeed because of the thredpool that is shutdown, log a warn

Conflicts:
	bpm/bonita-home/common/server/platform/conf/services/cfg-bonita-work-factory.xml
	services/bonita-services-test-conf/src/test/resources/conf/cfg-bonita-work-impl.xml
	services/bonita-work/bonita-work-impl/src/main/java/org/bonitasoft/engine/work/DefaultBonitaExecutorServiceFactory.java
	services/bonita-work/bonita-work-impl/src/test/java/org/bonitasoft/engine/work/DefaultBonitaExecutorServiceFactoryTest.java
null check when closing context
BS-7731, deactivate the close on spring context + the check, avec deleteplatform the logout recreate the context...
BS-7731, when in local call the engine initializer unload method to close psring context
BS-2353, change log as info when we are unable to run work because we are shuting down the engine
[ENGINE RELEASE] Created the release 6.2.5-UpdateTo626
[ENGINE RELEASE] Created the release 6.2.6-SNAPSHOT
Merge branch '6.2.x' into MasterBugFixing

Conflicts:
	bpm/bonita-api/bonita-client-api-ejb2/pom.xml
	bpm/bonita-api/bonita-client-api-ejb3/pom.xml
	bpm/bonita-api/bonita-client-api-http/pom.xml
	bpm/bonita-api/bonita-client-api-local/pom.xml
	bpm/bonita-api/bonita-client-api-tcp/pom.xml
	bpm/bonita-api/bonita-common-api-ejb2/pom.xml
	bpm/bonita-api/bonita-common-api-impl/pom.xml
	bpm/bonita-api/bonita-common-api/pom.xml
	bpm/bonita-api/bonita-server-api-http/pom.xml
	bpm/bonita-api/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-bpm-services-integration-tests/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-client-test-util/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-as-tests/bonita-integration-jboss4-ejb2/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-as-tests/bonita-integration-jboss4-ejb3/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-as-tests/bonita-integration-jboss5/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-as-tests/bonita-integration-jonas4/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-as-tests/bonita-integration-jonas5/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-as-tests/bonita-integration-tomcat6/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-as-tests/bonita-integration-tomcat7/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-as-tests/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-client-tests/pom.xml
	bpm/bonita-bpm-integration-tests/bonita-integration-local-tests/pom.xml
	bpm/bonita-bpm-integration-tests/pom.xml
	bpm/bonita-client/pom.xml
	bpm/bonita-common/pom.xml
	bpm/bonita-connector-service/bonita-connector-service-api-impl/pom.xml
	bpm/bonita-connector-service/bonita-connector-service-api/pom.xml
	bpm/bonita-connector-service/pom.xml
	bpm/bonita-core/bonita-actor-mapping/bonita-actor-mapping-api/pom.xml
	bpm/bonita-core/bonita-actor-mapping/bonita-actor-mapping-impl-hibernate/pom.xml
	bpm/bonita-core/bonita-actor-mapping/bonita-actor-mapping-impl/pom.xml
	bpm/bonita-core/bonita-actor-mapping/pom.xml
	bpm/bonita-core/bonita-category/bonita-category-api-impl/pom.xml
	bpm/bonita-core/bonita-category/bonita-category-api/pom.xml
	bpm/bonita-core/bonita-category/bonita-category-model-impl-hibernate/pom.xml
	bpm/bonita-core/bonita-category/bonita-category-model-impl/pom.xml
	bpm/bonita-core/bonita-category/bonita-category-model/pom.xml
	bpm/bonita-core/bonita-category/pom.xml
	bpm/bonita-core/bonita-core-data/bonita-data-instance-transient-data-source/pom.xml
	bpm/bonita-core/bonita-core-data/pom.xml
	bpm/bonita-core/bonita-home-server/pom.xml
	bpm/bonita-core/bonita-instance-migration/bonita-instance-migration-api/pom.xml
	bpm/bonita-core/bonita-instance-migration/bonita-instance-migration-impl-hibernate/pom.xml
	bpm/bonita-core/bonita-instance-migration/bonita-instance-migration-impl/pom.xml
	bpm/bonita-core/bonita-instance-migration/pom.xml
	bpm/bonita-core/bonita-login/bonita-login-api-impl/pom.xml
	bpm/bonita-core/bonita-login/bonita-login-api/pom.xml
	bpm/bonita-core/bonita-login/pom.xml
	bpm/bonita-core/bonita-operation/bonita-operation-api-impl/pom.xml
	bpm/bonita-core/bonita-operation/bonita-operation-api/pom.xml
	bpm/bonita-core/bonita-operation/bonita-operation-model-impl/pom.xml
	bpm/bonita-core/bonita-operation/bonita-operation-model/pom.xml
	bpm/bonita-core/bonita-operation/pom.xml
	bpm/bonita-core/bonita-platform-login/bonita-platform-login-api-impl/pom.xml
	bpm/bonita-core/bonita-platform-login/bonita-platform-login-api/pom.xml
	bpm/bonita-core/bonita-platform-login/pom.xml
	bpm/bonita-core/bonita-process-comment/bonita-process-comment-api-impl/pom.xml
	bpm/bonita-core/bonita-process-comment/bonita-process-comment-api/pom.xml
	bpm/bonita-core/bonita-process-comment/bonita-process-comment-model-impl-hibernate/pom.xml
	bpm/bonita-core/bonita-process-comment/bonita-process-comment-model-impl/pom.xml
	bpm/bonita-core/bonita-process-comment/bonita-process-comment-model/pom.xml
	bpm/bonita-core/bonita-process-comment/pom.xml
	bpm/bonita-core/bonita-process-definition/bonita-process-definition-api/pom.xml
	bpm/bonita-core/bonita-process-definition/bonita-process-definition-impl/pom.xml
	bpm/bonita-core/bonita-process-definition/bonita-process-definition-model-impl-hibernate/pom.xml
	bpm/bonita-core/bonita-process-definition/bonita-process-definition-model-impl/pom.xml
	bpm/bonita-core/bonita-process-definition/bonita-process-definition-model/pom.xml
	bpm/bonita-core/bonita-process-definition/pom.xml
	bpm/bonita-core/bonita-process-document-mapping/bonita-process-document-mapping-api-impl/pom.xml
	bpm/bonita-core/bonita-process-document-mapping/bonita-process-document-mapping-api/pom.xml
	bpm/bonita-core/bonita-process-document-mapping/bonita-process-document-mapping-model-impl-hibernate/pom.xml
	bpm/bonita-core/bonita-process-document-mapping/bonita-process-document-mapping-model-impl/pom.xml
	bpm/bonita-core/bonita-process-document-mapping/bonita-process-document-mapping-model/pom.xml
	bpm/bonita-core/bonita-process-document-mapping/pom.xml
	bpm/bonita-core/bonita-process-document/bonita-process-document-api/pom.xml
	bpm/bonita-core/bonita-process-document/bonita-process-document-impl/pom.xml
	bpm/bonita-core/bonita-process-document/bonita-process-document-model-impl/pom.xml
	bpm/bonita-core/bonita-process-document/bonita-process-document-model/pom.xml
	bpm/bonita-core/bonita-process-document/pom.xml
	bpm/bonita-core/bonita-process-engine/pom.xml
	bpm/bonita-core/bonita-process-engine/src/main/java/org/bonitasoft/engine/api/impl/PlatformAPIImpl.java
	bpm/bonita-core/bonita-process-engine/src/main/java/org/bonitasoft/engine/service/impl/SpringPlatformFileSystemBeanAccessor.java
	bpm/bonita-core/bonita-process-engine/src/main/java/org/bonitasoft/engine/service/impl/SpringSessionAccessorFileSystemBeanAcessor.java
	bpm/bonita-core/bonita-process-engine/src/main/java/org/bonitasoft/engine/service/impl/SpringTenantFileSystemBeanAccessor.java
	bpm/bonita-core/bonita-process-instance/bonita-process-instance-api/pom.xml
	bpm/bonita-core/bonita-process-instance/bonita-process-instance-impl/pom.xml
	bpm/bonita-core/bonita-process-instance/bonita-process-instance-model-impl-hibernate/pom.xml
	bpm/bonita-core/bonita-process-instance/bonita-process-instance-model-impl/pom.xml
	bpm/bonita-core/bonita-process-instance/bonita-process-instance-model/pom.xml
	bpm/bonita-core/bonita-process-instance/pom.xml
	bpm/bonita-core/bonita-reporting/bonita-reporting-impl/pom.xml
	bpm/bonita-core/bonita-reporting/pom.xml
	bpm/bonita-core/bonita-supervisor-mapping/bonita-supervisor-mapping-api/pom.xml
	bpm/bonita-core/bonita-supervisor-mapping/bonita-supervisor-mapping-impl-hibernate/pom.xml
	bpm/bonita-core/bonita-supervisor-mapping/bonita-supervisor-mapping-impl/pom.xml
	bpm/bonita-core/bonita-supervisor-mapping/pom.xml
	bpm/bonita-core/bonita-user-filter/bonita-user-filter-api/pom.xml
	bpm/bonita-core/bonita-user-filter/bonita-user-filter-impl/pom.xml
	bpm/bonita-core/bonita-user-filter/pom.xml
	bpm/bonita-core/pom.xml
	bpm/bonita-deploy/bonita-deploy-ear2/pom.xml
	bpm/bonita-deploy/bonita-deploy-ear3/pom.xml
	bpm/bonita-deploy/bonita-deploy-ejb2/pom.xml
	bpm/bonita-deploy/bonita-deploy-ejb3/pom.xml
	bpm/bonita-deploy/bonita-deploy-tcp/pom.xml
	bpm/bonita-deploy/bonita-deploy-war/pom.xml
	bpm/bonita-deploy/bonita-engine-deploy/pom.xml
	bpm/bonita-deploy/pom.xml
	bpm/bonita-expression-resolver/bonita-expression-resolver-api-impl/pom.xml
	bpm/bonita-expression-resolver/bonita-expression-resolver-api/pom.xml
	bpm/bonita-expression-resolver/pom.xml
	bpm/bonita-external/bonita-web-commands/pom.xml
	bpm/bonita-external/pom.xml
	bpm/bonita-home/common/server/platform/tenant-template/conf/services/cfg-bonita-work-factory.xml
	bpm/bonita-home/pom.xml
	bpm/bonita-server/pom.xml
	bpm/bonita-synchro-repository/bonita-synchro-jms/pom.xml
	bpm/bonita-synchro-repository/bonita-synchro-register/pom.xml
	bpm/bonita-synchro-repository/bonita-synchro-service-impl/pom.xml
	bpm/bonita-synchro-repository/bonita-synchro-service/pom.xml
	bpm/bonita-synchro-repository/pom.xml
	bpm/bonita-util/bonita-client-util/pom.xml
	bpm/bonita-util/pom.xml
	bpm/pom.xml
	pom.xml
	services/bonita-archive/bonita-archive-api/pom.xml
	services/bonita-archive/bonita-archive-impl/pom.xml
	services/bonita-archive/pom.xml
	services/bonita-authentication/bonita-authentication-api-impl/pom.xml
	services/bonita-authentication/bonita-authentication-api/pom.xml
	services/bonita-authentication/pom.xml
	services/bonita-builder/pom.xml
	services/bonita-cache/bonita-cache-api/pom.xml
	services/bonita-cache/bonita-cache-ehcache/pom.xml
	services/bonita-cache/pom.xml
	services/bonita-classloader/bonita-classloader-api/pom.xml
	services/bonita-classloader/bonita-classloader-impl/pom.xml
	services/bonita-classloader/pom.xml
	services/bonita-command/bonita-command-api-impl/pom.xml
	services/bonita-command/bonita-command-api/pom.xml
	services/bonita-command/bonita-command-model-impl-hibernate/pom.xml
	services/bonita-command/bonita-command-model-impl/pom.xml
	services/bonita-command/bonita-command-model/pom.xml
	services/bonita-command/pom.xml
	services/bonita-commons-test/pom.xml
	services/bonita-commons/pom.xml
	services/bonita-connector-executor/bonita-connector-executor-api-impl/pom.xml
	services/bonita-connector-executor/bonita-connector-executor-api/pom.xml
	services/bonita-connector-executor/pom.xml
	services/bonita-data-definition/bonita-data-definition-model-impl/pom.xml
	services/bonita-data-definition/bonita-data-definition-model/pom.xml
	services/bonita-data-definition/pom.xml
	services/bonita-data-instance/bonita-data-instance-api-impl/pom.xml
	services/bonita-data-instance/bonita-data-instance-api/pom.xml
	services/bonita-data-instance/bonita-data-instance-data-source-impl/pom.xml
	services/bonita-data-instance/bonita-data-instance-data-source/pom.xml
	services/bonita-data-instance/bonita-data-instance-model-impl-hibernate/pom.xml
	services/bonita-data-instance/bonita-data-instance-model-impl/pom.xml
	services/bonita-data-instance/bonita-data-instance-model/pom.xml
	services/bonita-data-instance/pom.xml
	services/bonita-data/bonita-data-api/pom.xml
	services/bonita-data/bonita-data-impl/pom.xml
	services/bonita-data/bonita-data-model-impl-hibernate/pom.xml
	services/bonita-data/bonita-data-model-impl/pom.xml
	services/bonita-data/bonita-data-model/pom.xml
	services/bonita-data/pom.xml
	services/bonita-dependency/bonita-dependency-api/pom.xml
	services/bonita-dependency/bonita-dependency-impl/pom.xml
	services/bonita-dependency/bonita-dependency-model-impl-hibernate/pom.xml
	services/bonita-dependency/bonita-dependency-model-impl/pom.xml
	services/bonita-dependency/bonita-dependency-model/pom.xml
	services/bonita-dependency/bonita-dependency-platform-impl/pom.xml
	services/bonita-dependency/bonita-dependency-platform-model-impl-hibernate/pom.xml
	services/bonita-dependency/bonita-dependency-platform-model-impl/pom.xml
	services/bonita-dependency/bonita-dependency-platform-model/pom.xml
	services/bonita-dependency/pom.xml
	services/bonita-document/bonita-document-api/pom.xml
	services/bonita-document/bonita-document-impl/pom.xml
	services/bonita-document/bonita-document-model-impl-hibernate/pom.xml
	services/bonita-document/bonita-document-model-impl/pom.xml
	services/bonita-document/bonita-document-model/pom.xml
	services/bonita-document/bonita-document-opencmis/pom.xml
	services/bonita-document/pom.xml
	services/bonita-events/bonita-events-api-impl/pom.xml
	services/bonita-events/bonita-events-api/pom.xml
	services/bonita-events/bonita-events-model-impl/pom.xml
	services/bonita-events/bonita-events-model/pom.xml
	services/bonita-events/pom.xml
	services/bonita-expression/bonita-expression-api-impl/pom.xml
	services/bonita-expression/bonita-expression-api/pom.xml
	services/bonita-expression/bonita-expression-model-impl/pom.xml
	services/bonita-expression/bonita-expression-model/pom.xml
	services/bonita-expression/pom.xml
	services/bonita-external-identity-mapping/bonita-external-identity-mapping-api/pom.xml
	services/bonita-external-identity-mapping/bonita-external-identity-mapping-impl-hibernate/pom.xml
	services/bonita-external-identity-mapping/bonita-external-identity-mapping-impl/pom.xml
	services/bonita-external-identity-mapping/pom.xml
	services/bonita-identity/bonita-identity-api/pom.xml
	services/bonita-identity/bonita-identity-impl/pom.xml
	services/bonita-identity/bonita-identity-model-impl-hibernate/pom.xml
	services/bonita-identity/bonita-identity-model-impl/pom.xml
	services/bonita-identity/bonita-identity-model/pom.xml
	services/bonita-identity/pom.xml
	services/bonita-incident/bonita-incident-api/pom.xml
	services/bonita-incident/bonita-incident-log/pom.xml
	services/bonita-incident/pom.xml
	services/bonita-jndi/bonita-jndi-memory/pom.xml
	services/bonita-jndi/pom.xml
	services/bonita-lock/bonita-lock-api-memory-impl/pom.xml
	services/bonita-lock/bonita-lock-api/pom.xml
	services/bonita-lock/pom.xml
	services/bonita-log/bonita-log-api/pom.xml
	services/bonita-log/bonita-log-impl/pom.xml
	services/bonita-log/bonita-log-model-impl/pom.xml
	services/bonita-log/bonita-log-model/pom.xml
	services/bonita-log/bonita-log-technical-api/pom.xml
	services/bonita-log/bonita-log-technical-slf4j/pom.xml
	services/bonita-log/pom.xml
	services/bonita-persistence/bonita-delete-api/pom.xml
	services/bonita-persistence/bonita-delete-impl/pom.xml
	services/bonita-persistence/bonita-persistence-api/pom.xml
	services/bonita-persistence/bonita-persistence-db/pom.xml
	services/bonita-persistence/bonita-persistence-hibernate-test/pom.xml
	services/bonita-persistence/bonita-persistence-hibernate/pom.xml
	services/bonita-persistence/bonita-persistence-read/pom.xml
	services/bonita-persistence/bonita-sequence-api/pom.xml
	services/bonita-persistence/bonita-sequence-impl/pom.xml
	services/bonita-persistence/pom.xml
	services/bonita-platform-authentication/bonita-platform-authentication-api-impl/pom.xml
	services/bonita-platform-authentication/bonita-platform-authentication-api/pom.xml
	services/bonita-platform-authentication/pom.xml
	services/bonita-platform-command/bonita-platform-command-api-impl/pom.xml
	services/bonita-platform-command/bonita-platform-command-api/pom.xml
	services/bonita-platform-command/bonita-platform-command-model-impl-hibernate/pom.xml
	services/bonita-platform-command/bonita-platform-command-model-impl/pom.xml
	services/bonita-platform-command/bonita-platform-command-model/pom.xml
	services/bonita-platform-command/pom.xml
	services/bonita-platform-session/bonita-platform-session-api-impl/pom.xml
	services/bonita-platform-session/bonita-platform-session-api/pom.xml
	services/bonita-platform-session/bonita-platform-session-model-impl/pom.xml
	services/bonita-platform-session/bonita-platform-session-model/pom.xml
	services/bonita-platform-session/pom.xml
	services/bonita-platform/bonita-platform-api-impl/pom.xml
	services/bonita-platform/bonita-platform-api/pom.xml
	services/bonita-platform/bonita-platform-model-impl-hibernate/pom.xml
	services/bonita-platform/bonita-platform-model-impl/pom.xml
	services/bonita-platform/bonita-platform-model/pom.xml
	services/bonita-platform/pom.xml
	services/bonita-profile/bonita-profile-api/pom.xml
	services/bonita-profile/bonita-profile-impl-hibernate/pom.xml
	services/bonita-profile/bonita-profile-impl/pom.xml
	services/bonita-profile/pom.xml
	services/bonita-recorder/bonita-recorder-api/pom.xml
	services/bonita-recorder/bonita-recorder-impl/pom.xml
	services/bonita-recorder/bonita-recorder-model/pom.xml
	services/bonita-recorder/pom.xml
	services/bonita-scheduler/bonita-scheduler-api/pom.xml
	services/bonita-scheduler/bonita-scheduler-impl-hibernate/pom.xml
	services/bonita-scheduler/bonita-scheduler-impl/pom.xml
	services/bonita-scheduler/bonita-scheduler-quartz/pom.xml
	services/bonita-scheduler/pom.xml
	services/bonita-services-integration-tests/pom.xml
	services/bonita-services-test-conf/pom.xml
	services/bonita-services-test-conf/src/test/resources/conf/cfg-bonita-work-impl.xml
	services/bonita-session-accessor/bonita-session-accessor-read/pom.xml
	services/bonita-session-accessor/bonita-session-accessor-threadlocal/pom.xml
	services/bonita-session-accessor/bonita-session-accessor-write/pom.xml
	services/bonita-session-accessor/pom.xml
	services/bonita-session/bonita-session-api-impl/pom.xml
	services/bonita-session/bonita-session-api/pom.xml
	services/bonita-session/bonita-session-model-impl/pom.xml
	services/bonita-session/bonita-session-model/pom.xml
	services/bonita-session/pom.xml
	services/bonita-sql/pom.xml
	services/bonita-test-util/pom.xml
	services/bonita-theme/bonita-theme-api/pom.xml
	services/bonita-theme/bonita-theme-impl-hibernate/pom.xml
	services/bonita-theme/bonita-theme-impl/pom.xml
	services/bonita-theme/pom.xml
	services/bonita-transaction/bonita-transaction-api/pom.xml
	services/bonita-transaction/bonita-transaction-impl/pom.xml
	services/bonita-transaction/bonita-transaction-test/pom.xml
	services/bonita-transaction/pom.xml
	services/bonita-work/bonita-work-api/pom.xml
	services/bonita-work/bonita-work-impl/pom.xml
	services/bonita-work/bonita-work-impl/src/main/java/org/bonitasoft/engine/work/DefaultBonitaExecutorServiceFactory.java
	services/bonita-work/bonita-work-impl/src/main/java/org/bonitasoft/engine/work/ExecutorWorkService.java
	services/bonita-work/pom.xml
	services/bonita-xml/bonita-xml-parse-api/pom.xml
	services/bonita-xml/bonita-xml-parse-sax/pom.xml
	services/bonita-xml/bonita-xml-validate-api/pom.xml
	services/bonita-xml/bonita-xml-validate-sax/pom.xml
	services/bonita-xml/bonita-xml-write-api/pom.xml
	services/bonita-xml/bonita-xml-write-dom/pom.xml
	services/bonita-xml/pom.xml
	services/pom.xml
fix merge
missing stop on connector executor
fix merge
Merge branch 'master' into 'MasterBugFixing'
Merge branch 'MasterBugFixing' into 'master'
Merge remote-tracking branch 'remotes/origin/master' into BS-6669_SsoCas

Conflicts:
	bpm/bonita-core/bonita-process-engine/src/main/java/org/bonitasoft/engine/api/impl/PlatformAPIImpl.java