class TppRedirectUriMapper {

    public @Nullable TppRedirectUri mapToTppRedirectUri(@Nullable String redirectUri, @Nullable String nokRedirectUri) {
        return Optional.ofNullable(redirectUri)
                   .map(redirect -> new TppRedirectUri(redirect, nokRedirectUri))
                   .orElse(new TppRedirectUri("", ""));
    }

}