code: private InstanceContext findAgentContext( Application application, Instance instance ) {
  
  		Instance scopedInstance = InstanceHelpers.findScopedInstance( instance );
  		return new InstanceContext( application, scopedInstance );
  	}
docs: Builds an instance context corresponding to an agent.
  @param application an application
  @param instance an instance
  @return an instance context made up of the application and the right scoped instance