if (ReflectionUtil.isAnnotationPresent(componentClass, TypeCapability.class)) {
TypeCapability annotation = ReflectionUtil.getAnnotation(componentClass, TypeCapability.class);
String[] inputTypesOrFeatureNames = annotation.inputs();
capability.setInputs(createTypesOrFeatures(inputTypesOrFeatureNames));
String[] outputTypesOrFeatureNames = annotation.outputs();
capability.setOutputs(createTypesOrFeatures(outputTypesOrFeatureNames));
}
return capability;
}