LDAP-265: Moved ODM functionality to core and added methods in LdapTemplate.