Add Publishing Context via API

Hello,

          I am trying to add publishing context for publication object via API and below is the Ishfield I have added

  ishfields.add(new IshField("FISHPUBCONTEXT", IshField.ISHLevel.LOGICAL,"<features><feature name='product' value='DME' /></features>"));

 

The Exception I get is

"com.sdl.trisoft.PublicationOutput.PublicationOutputCreateInfoShareFaultFaultMessage: [-102003] The FieldValue \"FISHPUBCONTEXT\" cannot be returned, because it is not initialized. [102003;ObjectNotInitialized]"

 

Any suggestions?

 

Thanks