// FIXME the session.getHomeJndiName should be moved to the JBossSessionMetaData.determineJndiName()
// and these if statements replaced with md.determineJndiName()
if( beanMD.isEntity() )
{
JBossEntityBeanMetaData md = (JBossEntityBeanMetaData) beanMD;
jndiName = md.determineJndiName();
}
else if( beanMD.isSession())
{
JBossSessionBeanMetaData md = (JBossSessionBeanMetaData) beanMD;
jndiName = md.getHomeJndiName();