*/
public AmberPersistenceUnit createEjbPersistenceUnit()
{
if (_ejbPersistenceUnit == null) {
try {
AmberContainer amber = AmberContainer.create(_classLoader);
_ejbPersistenceUnit = amber.createPersistenceUnit("resin-ejb");
_ejbPersistenceUnit.setBytecodeGenerator(false);
ClassLoader loader = SimpleLoader.create(getWorkDir());
_ejbPersistenceUnit.setEnhancedLoader(loader);
_ejbPersistenceUnit.initLoaders();
// _ejbPersistenceUnit.setTableCacheTimeout(_entityCacheTimeout);