case BIND:
Attributes attributes = (Attributes) body.get(ATTRIBUTES);
ldapTemplate.bind(dn, null, attributes);
break;
case UNBIND:
ldapTemplate.unbind(dn);
break;
default:
throw new UnsupportedOperationException(
"Bug in the Spring-LDAP component. Despite of all assertions, you managed to call an unsupported operation '"
+ operation + "'");