Use reflection to check if one of its classes is on the CP (Class.forName). If so the required annotation classes can be resolved from class names (String) using reflection and used to configure the bootstrapping to have the effect specified by JSR-330.