code: public void setMemberServices(MemberServices memberServices) {
          this.memberServices = memberServices;
          if (memberServices instanceof MemberServicesImpl) {
             this.cryptoPrimitives = ((MemberServicesImpl) memberServices).getCrypto();
          }
      }
docs: Set the member service
  @param memberServices The MemberServices instance