ApiClass ejbClass = getEJBClassWrapper();
fillClassDefaults(ejbClass);
if (Stateless.class.equals(getSessionType())) {
_sessionBean = new StatelessGenerator(getEJBName(), ejbClass,
getLocalList(), getRemoteList());
} else if (Stateful.class.equals(getSessionType())) {
_sessionBean = new StatefulGenerator(getEJBName(), ejbClass,
getLocalList(), getRemoteList());
} else if (Singleton.class.equals(getSessionType())){