selectedConnection.getConnection().setReadOnly( originalReadOnlyFlag );
LdifChangeModifyRecord record = Utils.computeDiff( selectedEntry, prototypeEntry );
if ( record != null )
{
ExecuteLdifRunnable runnable = new ExecuteLdifRunnable( selectedConnection, record
.toFormattedString( LdifFormatParameters.DEFAULT ), false, false );
IStatus status = RunnableContextRunner.execute( runnable, getContainer(), true );
if ( !status.isOK() )
{
selectedConnection.getConnection().setReadOnly( true );