fixing bug #4340 by simplifying code and using correct methods

Conflicts:
	war-core/src/main/java/com/silverpeas/directory/control/DirectorySessionController.java
	war-core/src/test/java/com/silverpeas/directory/control/DirectorySessionControllerTest.java