class SaveAndRenameServiceImpl implements SupportsSaveAndRename<T, M> {

    @Override
    public Path saveAndRename(final Path path,
                              final String newFileName,
                              final M metadata,
                              final T content,
                              final String comment) {

        final Path savedPath = save(path, content, metadata, comment);
        final Path renamedPath = rename(savedPath, newFileName, comment);

        return renamedPath;
    }

}