code: public void initialize(UimaContext context)
        throws ResourceInitializationException {
  
      super.initialize(context);
      
  	this.context = context;
  	  
      mLogger = context.getLogger();  
      
      if (mLogger.isLoggable(Level.INFO)) {
        mLogger.log(Level.INFO, "Initializing the OpenNLP Featurizer annotator.");
      }    
      
      FeaturizerModel model;
      
      try {
        FeaturizerModelResource modelResource = 
              (FeaturizerModelResource) context.getResourceObject(UimaUtil.MODEL_PARAMETER);
          
          model = modelResource.getModel();
      }
      catch (ResourceAccessException e) {
          throw new ResourceInitializationException(e);
      }
      
      mFeaturizer = new FeaturizerME(model);
    }
docs: Initializes the current instance with the given context.
  
  Note: Do all initialization in this method, do not use the constructor.