private void addHomeAnnotations(EJBContainer container,
JBossSessionBeanMetaData sessionBean) throws Exception
{
if (sessionBean.getHome() != null)
{
RemoteHomeImpl annotation = new RemoteHomeImpl(di.getClassLoader()
.loadClass(sessionBean.getHome()));
addClassAnnotation(container, annotation.annotationType(), annotation);
}
if (sessionBean.getLocalHome() != null)
{
LocalHomeImpl annotation = new LocalHomeImpl(di.getClassLoader()
.loadClass(sessionBean.getLocalHome()));
addClassAnnotation(container, annotation.annotationType(), annotation);
}
}