@Override
public boolean authenticate() {
throwIfParametersMissing();
String content = httpAdapter.getResult(Constants.LOGIN_PATH, getBaseUrl(), getApiKey(), String.valueOf(getAccountId()));
Account acc = getDomainObject(content, Account.class);
if (acc != null && getAccountId().equals(acc.getId())) {
return true;
}
return false;
}