String extension = getExtension( fileToBeRenamed.getName() );
if ( extension != null ) {
buf.append( extension );
}
}
repository.moveFile( fileToBeRenamed.getId(), buf.toString(), "Renaming the file" );
RepositoryFile movedFile = repository.getFileById( fileToBeRenamed.getId() );
if ( movedFile != null ) {
if ( !movedFile.isFolder() ) {
Map<String, Properties> localePropertiesMap = movedFile.getLocalePropertiesMap();
if ( localePropertiesMap == null ) {