desc.setAnnotatorImplementationName(componentClass.getName());
org.apache.uima.fit.descriptor.OperationalProperties componentAnno = ReflectionUtil
.getInheritableAnnotation(org.apache.uima.fit.descriptor.OperationalProperties.class,
componentClass);
if (componentAnno != null) {
OperationalProperties op = desc.getAnalysisEngineMetaData().getOperationalProperties();
op.setMultipleDeploymentAllowed(componentAnno.multipleDeploymentAllowed());
op.setModifiesCas(componentAnno.modifiesCas());
op.setOutputsNewCASes(componentAnno.outputsNewCases());
} else {
OperationalProperties op = desc.getAnalysisEngineMetaData().getOperationalProperties();
op.setMultipleDeploymentAllowed(MULTIPLE_DEPLOYMENT_ALLOWED_DEFAULT);
op.setModifiesCas(MODIFIES_CAS_DEFAULT);
op.setOutputsNewCASes(OUTPUTS_NEW_CASES_DEFAULT);
}
// Configure resource meta data
AnalysisEngineMetaData meta = desc.getAnalysisEngineMetaData();
ResourceMetaDataFactory.configureResourceMetaData(meta, componentClass);