Update ClassCastException spring ldap