ejbTypes.add(Object.class);
}
private static void addApiTypes(final Collection<Type> clazzes, final Class<?> beanClass) {
final Typed typed = beanClass.getAnnotation(Typed.class);
if (typed == null || typed.value().length == 0) {
Class<?> current = beanClass;
while (current != null && !Object.class.equals(current)) {
clazzes.add(current);
current = current.getSuperclass();
}
} else {
Collections.addAll(clazzes, typed.value());
}
}