protected void createRealmDataObject ( Root inputRootObject , String inputRealm ) { // use the root DataGraph to create a Context DataGraph List < Context > contexts = inputRootObject . getContexts ( ) ; if ( contexts != null ) { Context ctx = new Context ( ) ; // set "WIM.Realm" in the Context DataGraph to the realm ctx . setKey ( Service . VALUE_CONTEXT_REALM_KEY ) ; ctx . setValue ( inputRealm ) ; contexts . add ( ctx ) ; } }
Create a DataObject for the realm context .