/** * Configure a component from the given context. * @param object * the component. * @param context * the UIMA context. * * @param <T> * the component type. * @throws ResourceInitializationException * if the external resource cannot be configured. */ public static <T> void initialize(T object, UimaContext context) throws ResourceInitializationException { configure(context, object.getClass(), object.getClass(), object); }
throws ResourceInitializationException { if (cls.getSuperclass() != null) { configure(context, baseCls, cls.getSuperclass(), object); } else {