code: public boolean isEJB(JavaType<?> javaType)
     {
        return javaType.hasAnnotation(Stateless.class) ||
                 javaType.hasAnnotation(Stateful.class) ||
                 javaType.hasAnnotation(Singleton.class) ||
                 javaType.hasAnnotation(MessageDriven.class);
  
     }
docs: Given a JavaType, this method checks if it's an EJB or not
  
  @param javaType given type
  @return true if the type is an EJB