Fix Issue #WM-4825(ClassCastException when accessing getUserName method of SecurityService when using ldap authentication).