class PrependPageNumberPrefixProcessor implements PrefixProcessor {

    @Override
    public String process(String inputPrefix, NameGenerationRequest request) {
        if (nonNull(request) && nonNull(request.getPage())) {
            return String.format("%d_%s", request.getPage(), inputPrefix);
        }
        return inputPrefix;
    }

}