class AppendExtensionPrefixProcessor implements PrefixProcessor {

    @Override
    public String process(String inputPrefix, NameGenerationRequest request) {
        if (request != null && StringUtils.isNotBlank(request.getExtension())) {
            return String.format("%s.%s", inputPrefix, request.getExtension());
        }
        return inputPrefix;
    }

}