class AuthServiceResolver {

    @NotNull
    public AuthService getAuthService(AuthorisationType authorisationType) {
        switch (authorisationType) {
            case CONSENT:
                return aisAuthService;
            case PIS_CREATION:
                return pisAuthService;
            case PIS_CANCELLATION:
                return pisCancellationAuthService;
            default:
                throw new IllegalArgumentException("Unknown authorisation type: " + authorisationType);
        }
    }

}