class AccountAspectService extends BaseAspectService<AccountController> {

    public ResponseObject<Xs2aAccountDetailsHolder> getAccountDetailsAspect(ResponseObject<Xs2aAccountDetailsHolder> result) {
        if (!result.hasError()) {
            Xs2aAccountDetailsHolder body = result.getBody();
            Xs2aAccountDetails accountDetails = body.getAccountDetails();
            accountDetails.setLinks(new AccountDetailsLinks(getHttpUrl(), accountDetails.getResourceId(),
                                                            body.getAisConsent()));
        }
        return result;
    }

    @Autowired public  AccountAspectService(AspspProfileServiceWrapper aspspProfileServiceWrapper);

}