process method that executes the common use case of the client