class LdapTemplate implements LdapOperations, InitializingBean {

    @Override
    public void create(Object entry) {
        Assert.notNull(entry, "Entry must not be null");

        if (LOG.isDebugEnabled()) {
            LOG.debug(String.format("Creating entry - %s$1", entry));
        }

        Name id = odm.getId(entry);
        if(id == null) {
            id = odm.getCalculatedId(entry);
            odm.setId(entry, id);
        }

        Assert.notNull(id, String.format("Unable to determine id for entry %s", entry.toString()));

        DirContextAdapter context = new DirContextAdapter(id);
        odm.mapToLdapDataEntry(entry, context);

        bind(context);
    }

    public  LdapTemplate();
    public  LdapTemplate(ContextSource contextSource);

}