JBossSessionBeanMetaData enterpriseBean) throws Exception
{
if (!enterpriseBean.isClustered())
{
// ask directly, not the container (metadata setup in progress)
Clustered existingAnnotation = ejbClass.getAnnotation(Clustered.class);
if (existingAnnotation != null)
container.getAnnotations().disableAnnotation(Clustered.class.getName());
return;
}