public static void begin(ServletRequest request,ServletResponse response,String serviceName,String objectId) throws ServletException {
  ServiceContext context=(ServiceContext)_localContext.get();
  if (context == null) {
    context=new ServiceContext();
    _localContext.set(context);
  }
  context._request=request;
  context._response=response;
  context._serviceName=serviceName;
  context._objectId=objectId;
  context._count++;
}

public static void begin ( ServletRequest request , ServletResponse response , String serviceName , String objectId ) throws ServletException { ServiceContext context = ( ServiceContext ) _localContext . get ( ) ; if ( context == null ) { context = new ServiceContext ( ) ; _localContext . set ( context ) ; } context . _request = request ; context . _response = response ; context . _serviceName = serviceName ; context . _objectId = objectId ; context . _count ++ ; }
sets the request object prior to calling the service ' s method .
