public InvocationStub createStub(final SPFPerson target, SPFServiceDescriptor descriptor) {
    """
	Creates an invocation stub to send service invocation requests to a
	target {@link SPFPerson} providing the name and the parameter list. The
	object is created from a {@link ServiceDescriptor} containing the
	required details.
	
	@param target
	- the person who the service invocation requests will be
	dispatched to.
	@param descriptor
	- the {@link ServiceDescriptor} of the service whose methods
	to invoke.
	@return a {@link InvocationStub} to perform invocations of remote
	services.
    """
		return InvocationStub.from(descriptor, new InvocationStub.Target() {

			@Override
			public void prepareArguments(Object[] arguments) throws ServiceInvocationException {
				mExecutionInterface.injectActivities(target.getIdentifier(), arguments);
			}

			@Override
			public InvocationResponse executeService(InvocationRequest request) {
				return mExecutionInterface.executeService(target.getIdentifier(), request);
			}
		});
	}
public InvocationStub createStub(final SPFPerson target, SPFServiceDescriptor descriptor) {
		return InvocationStub.from(descriptor, new InvocationStub.Target() {

			@Override
			public void prepareArguments(Object[] arguments) throws ServiceInvocationException {
				mExecutionInterface.injectActivities(target.getIdentifier(), arguments);
			}

			@Override
			public InvocationResponse executeService(InvocationRequest request) {
				return mExecutionInterface.executeService(target.getIdentifier(), request);
			}
		});
	}
public InvocationStub createStub ( final SPFPerson target , SPFServiceDescriptor descriptor ) { return InvocationStub . from ( descriptor , new InvocationStub . Target ( ) { @ Override public void prepareArguments ( Object [ ] arguments ) throws ServiceInvocationException { mExecutionInterface . injectActivities ( target . getIdentifier ( ) , arguments ) ; } @ Override public InvocationResponse executeService ( InvocationRequest request ) { return mExecutionInterface . executeService ( target . getIdentifier ( ) , request ) ; } } ) ; }
Creates an invocation stub to send service invocation requests to a
target {@link SPFPerson} providing the name and the parameter list. The
object is created from a {@link ServiceDescriptor} containing the
required details.

@param target
- the person who the service invocation requests will be
dispatched to.
@param descriptor
- the {@link ServiceDescriptor} of the service whose methods
to invoke.
@return a {@link InvocationStub} to perform invocations of remote
services.
Creates an invocation stub to send service invocation requests to a target { @link SPFPerson } providing the name and the parameter list . The object is created from a { @link ServiceDescriptor } containing the required details .