Source:
<code>public static void main(final String[] args) throws Exception { final LobClient client = AsyncLobClient.createDefault(API_KEY); final String letterTemplate = Files.toString(ClientUtil.fileFromResource("letters/letter_template.html"), Charsets.UTF_8); final AddressRequest companyAddress = AddressRequest.builder() .name("Deluxe Virgina Realty") .line1("185 Berry St.") .line2("Ste 6600") .city("San Francisco") .state("CA") .zip("94107") .country("US") .build(); final String today = new SimpleDateFormat("MMMM d YYYY").format(new Date()); final CsvMapper mapper = new CsvMapper(); final CsvSchema schema = mapper.schemaFor(CsvLetter.class).withHeader(); final MappingIterator<CsvLetter> iterator = mapper.reader(CsvLetter.class).with(schema).readValues(fileFromResource("letters/input.csv")); while (iterator.hasNext()) { final CsvLetter letter = iterator.next(); final Map<String, String> data = new HashMap<String, String>(); data.put("date", today); data.put("name", letter.name); data.put("amountDue", letter.amount); final LetterRequest letterRequest = LetterRequest.builder() .to( <START> AddressRequest.builder() <END> .name(letter.name) .line1(letter.address1) .line2(letter.address2) .city(letter.city) .state(letter.state) .zip(letter.zip) .country("US") .build()) .from(companyAddress) .file(letterTemplate) .color(true) .data(data) .build(); try { final LetterResponse letterResponse = client.createLetter(letterRequest).get(); printResponse("Letter", letterResponse); } catch (final Exception e) { printResponse("Failed Letter", letter); } } }</code><technical_language>Is this formatting standard</technical_language>

Target:
public static void main(final String[] args) throws Exception { final LobClient client = AsyncLobClient.createDefault(API_KEY); final String letterTemplate = Files.toString(ClientUtil.fileFromResource("letters/letter_template.html"), Charsets.UTF_8); final AddressRequest companyAddress = AddressRequest.builder() .name("Deluxe Virgina Realty") .line1("185 Berry St.") .line2("Ste 6600") .city("San Francisco") .state("CA") .zip("94107") .country("US") .build(); final String today = new SimpleDateFormat("MMMM d YYYY").format(new Date()); final CsvMapper mapper = new CsvMapper(); final CsvSchema schema = mapper.schemaFor(CsvLetter.class).withHeader(); final MappingIterator<CsvLetter> iterator = mapper.reader(CsvLetter.class).with(schema).readValues(fileFromResource("letters/input.csv")); while (iterator.hasNext()) { final CsvLetter letter = iterator.next(); final Map<String, String> data = new HashMap<String, String>(); data.put("date", today); data.put("name", letter.name); data.put("amountDue", letter.amount); final LetterRequest letterRequest = LetterRequest.builder() .to( AddressRequest.builder() .name(letter.name) .line1(letter.address1) .line2(letter.address2) .city(letter.city) .state(letter.state) .zip(letter.zip) .country("US") .build()) .from(companyAddress) .file(letterTemplate) .color(true) .data(data) .build(); try { final LetterResponse letterResponse = client.createLetter(letterRequest).get(); printResponse("Letter", letterResponse); } catch (final Exception e) { printResponse("Failed Letter", letter); } } System.exit(0); }