if (accountProfile != null) {
accountProfileResponse = new Accountprofile();
mapper.map(accountProfile, accountProfileResponse, ACCOUNT_PROFILE_MAPPING);
} else {
log.error("TradingServiceFacadeImpl.findAccountprofileByAuthtoken(): accountProfile is null for token=" + token);
throw new AuthenticationException("Authorization Token not found");
}
return accountProfileResponse;
}