Using rest-client lib in LdapController