public static Context createPendingActionContext(Context context,ReconAction action,String mappingName,JsonValue sourceObject,String reconId,Situation situation){
  Map<String,Object> pendingActionMap=new HashMap<String,Object>();
  pendingActionMap.put(MAPPING_NAME,mappingName);
  pendingActionMap.put(SOURCE_OBJECT,sourceObject);
  pendingActionMap.put(RECON_ID,reconId);
  pendingActionMap.put(ORIGINAL_SITUATION,situation.toString());
  PendingActionContext pendingActionContext=new PendingActionContext(context,pendingActionMap,action.toString());
  return pendingActionContext;
}

public static Context createPendingActionContext ( Context context , ReconAction action , String mappingName , JsonValue sourceObject , String reconId , Situation situation ) { Map < String , Object > pendingActionMap = new HashMap < String , Object > ( ) ; pendingActionMap . put ( MAPPING_NAME , mappingName ) ; pendingActionMap . put ( SOURCE_OBJECT , sourceObject ) ; pendingActionMap . put ( RECON_ID , reconId ) ; pendingActionMap . put ( ORIGINAL_SITUATION , situation . toString ( ) ) ; PendingActionContext pendingActionContext = new PendingActionContext ( context , pendingActionMap , action . toString ( ) ) ; return pendingActionContext ; }
creates and populates a pendingactioncontext .
