protected boolean isProcessAnnotation(T descriptor) { // if the system property is set to process annotation for pre-JavaEE5 // DD, the semantics of isFull flag is: full attribute is set to // true in DD. Otherwise the semantics is full attribute set to // true or it is pre-JavaEE5 DD. boolean isFull = false; if (processAnnotationForOldDD) { isFull = descriptor.isFullAttribute(); } else { isFull = descriptor.isFullFlag(); } // only process annotation when these two requirements satisfied: // 1. It is not a full deployment descriptor // 2. It is called through dynamic deployment return (!isFull && annotationProcessingRequested && classLoader != null); }