public boolean isEjbManagedObject(Object desc, Class c) {
String className = c.getName();
EjbDescriptor ejbDesc = (EjbDescriptor) desc;
Set<String> ejbManagedObjectClassNames = new HashSet<String>();
ejbManagedObjectClassNames.add(ejbDesc.getEjbClassName());
for(EjbInterceptor next : ejbDesc.getInterceptorClasses()) {
if( !next.isCDIInterceptor() ) {
ejbManagedObjectClassNames.add(next.getInterceptorClassName());
}
}