Create ClassCastException spring ldap