if( generator == null ) {
String cname = System.getProperty(LWPProperties.SEQ_GEN);
if( cname == null ) {
generator = new JDBCGenerator();
}
else {
try {
generator =
(SequenceGenerator)Class.forName(cname).newInstance();
}
catch( Exception e ) {
throw new SequenceException(e.getMessage());
}
}
}
return generator.generate(seq);