private Investor createAndSaveInvestor(ECKey key) { return investorService.saveTransactionless(buildInvestor(key)); }
private Investor createInvestor() { try { return investorService.getInvestorByEmail(INVESTOR_EMAIL); } catch (InvestorNotFoundException e) { return investorService.saveTransactionless( new Investor(new java.util.Date(), INVESTOR_EMAIL, "token", "walletAddress", "payInEtherPublicKey", "payInBitcoinPublicKey", "refundEtherAddress", "refundBitcoinAddress", "ipAddress")); } }