/* (non-Javadoc)
   * @see net.docusign.service.DocusignLoginService#pingService()
   */
  @Override
  public boolean pingService() {
    Boolean pingResponse = credentialSoap.ping();
    log.info(LogUtil.logCredentialPingResponse(pingResponse));

    return pingResponse;
  }
  /* (non-Javadoc)
   * @see net.docusign.service.DocusignLoginService#lookupAccountsByEmailAndPassword(java.lang.String, java.lang.String)
   */
  public List<Account> lookupAccountsByEmailAndPassword(String username, String password) {
    LoginResult loginResult = credentialSoap.login(username, password);

    if (loginResult.getAccounts() != null) {
      List<Account> accounts = loginResult.getAccounts().getAccount();

      for (Account account : accounts) {
        log.info(LogUtil.logFoundAccount(account, password));
      }

      return accounts;
    } else {
      log.info(LogUtil.logNoAccounts(username, password));
      return new ArrayList<Account>();
    }
  }