}
private void addSequence(IdentifierGenerator identifierGenerator) {
if ( identifierGenerator instanceof OgmSequenceGenerator ) {
OgmSequenceGenerator sequenceGenerator = (OgmSequenceGenerator) identifierGenerator;
addSequence( sequenceGenerator.generatorKey(), sequenceGenerator.getSegmentValue(), sequenceGenerator.getInitialValue() );
}
else if ( identifierGenerator instanceof OgmTableGenerator ) {
OgmTableGenerator sequenceGenerator = (OgmTableGenerator) identifierGenerator;
addSequence( sequenceGenerator.generatorKey(), sequenceGenerator.getSegmentValue(), sequenceGenerator.getInitialValue() );
}