code: public LifecycleApproveChaincodeDefinitionForMyOrgProposalResponse sendLifecycleApproveChaincodeDefinitionForMyOrgProposal(LifecycleApproveChaincodeDefinitionForMyOrgRequest lifecycleApproveChaincodeDefinitionForMyOrgRequest, Peer peer) throws ProposalException, InvalidArgumentException {
  
          if (null == lifecycleApproveChaincodeDefinitionForMyOrgRequest) {
              throw new InvalidArgumentException("The lifecycleApproveChaincodeDefinitionForMyOrgRequest parameter can not be null.");
          }
  
          Collection<LifecycleApproveChaincodeDefinitionForMyOrgProposalResponse> lifecycleApproveChaincodeDefinitionForMyOrgProposalResponses =
                  sendLifecycleApproveChaincodeDefinitionForMyOrgProposal(lifecycleApproveChaincodeDefinitionForMyOrgRequest, Collections.singleton(peer));
          return lifecycleApproveChaincodeDefinitionForMyOrgProposalResponses.iterator().next();
  
      }
docs: Approve chaincode to be run on this peer's organization.
  
  @param lifecycleApproveChaincodeDefinitionForMyOrgRequest the request see {@link LifecycleApproveChaincodeDefinitionForMyOrgRequest}
  @param peer
  @return A {@link LifecycleApproveChaincodeDefinitionForMyOrgProposalResponse}
  @throws ProposalException
  @throws InvalidArgumentException