try
{
// Comparing both partitions to get the list of modifications to be applied
PartitionsDiffComputer partitionsDiffComputer = new PartitionsDiffComputer();
partitionsDiffComputer.setOriginalPartition( originalPartition );
partitionsDiffComputer.setDestinationPartition( newconfigurationPartition );
List<LdifEntry> modificationsList = partitionsDiffComputer.computeModifications( new String[]
{ SchemaConstants.ALL_USER_ATTRIBUTES } );
// Building the resulting LDIF
StringBuilder modificationsLdif = new StringBuilder();
for ( LdifEntry ldifEntry : modificationsList )