class MetadataVersionDelegate {

    public synchronized void addNewMetadataVersion( MetadataVersion version )
    {
        version.setImportDate( new Date() );

        try
        {
            metadataVersionService.addVersion( version );
        }
        catch ( Exception e )
        {
            throw new MetadataVersionServiceException( "Exception occurred while trying to add metadata version" + version, e );
        }
    }

    public  MetadataVersionDelegate( DefaultMetadataSystemSettingService metadataSystemSettingService,
        SynchronizationManager synchronizationManager, RenderService renderService,
        MetadataVersionService metadataVersionService );

}