String modifyTimestamp = DateUtils.getGeneralizedTime();
List<Modification> mods = new ArrayList<Modification>( 2 );
mods.add( new ServerModification( ModificationOperation.REPLACE_ATTRIBUTE,
new DefaultServerAttribute(
ApacheSchemaConstants.SCHEMA_MODIFY_TIMESTAMP_AT,
registries.getAttributeTypeRegistry().lookup( ApacheSchemaConstants.SCHEMA_MODIFY_TIMESTAMP_AT ),
modifyTimestamp ) ) );
mods.add( new ServerModification( ModificationOperation.REPLACE_ATTRIBUTE,
new DefaultServerAttribute(
ApacheSchemaConstants.SCHEMA_MODIFIERS_NAME_AT,
registries.getAttributeTypeRegistry().lookup( ApacheSchemaConstants.SCHEMA_MODIFIERS_NAME_AT ),
modifiersName ) ) );
LdapDN name = new LdapDN( ServerDNConstants.SCHEMA_TIMESTAMP_ENTRY_DN );