public static void getNewlyCreatedPackage() {
    EslClient eslClient = new EslClient(API_KEY, API_URL);

    DocumentPackage superDuperPackage =
        newPackageNamed("Policy " + format.format(new Date()))
            .describedAs("This is a package created using the e-SignLive SDK")
            .expiresAt(now().plusMonths(1).toDate())
            .withEmailMessage("This message should be delivered to all signers")
            .inPerson(true)
            .withSigner(
                newSignerWithEmail(props.getProperty("1.email"))
                    .withFirstName("John")
                    .withLastName("Smith")
                    .withTitle("Managing Director")
                    .withCompany("Acme Inc."))
            .withDocument(
                newDocumentWithName("First Document")
                    .fromFile("src/main/resources/document.pdf")
                    .withSignature(
                        signatureFor(props.getProperty("1.email"))
                            .onPage(0)
                            .atPosition(100, 100)
                            .withField(
                                FieldBuilder.textField()
                                    .onPage(0)
                                    .atPosition(400, 100)
                                    .withSize(200, 50))))
            .build();

    PackageId packageId = eslClient.createPackage(superDuperPackage);
    DocumentPackage unsentPackage = eslClient.getPackage(packageId);
  }
  @Override
  public void execute() {

    // Note that the field ID for injected field is not a significant for the field injection.
    // InjectedField list is not returned by the esl-backend.
    DocumentPackage superDuperPackage =
        newPackageNamed(
                "FieldInjectionAndExtractionExample "
                    + new SimpleDateFormat("HH:mm:ss").format(new Date()))
            .withSettings(
                DocumentPackageSettingsBuilder.newDocumentPackageSettings().withInPerson())
            .withSigner(newSignerWithEmail(email1).withFirstName("John").withLastName("Smith"))
            .withDocument(
                newDocumentWithName(DOCUMENT_NAME)
                    .fromStream(documentInputStream1, DocumentType.PDF)
                    .withInjectedField(
                        FieldBuilder.textField()
                            .withName("Text1")
                            .withValue("First Injected Value"))
                    .withInjectedField(
                        FieldBuilder.textField()
                            .withName("Text2")
                            .withValue("Second Injected Value"))
                    .withInjectedField(
                        FieldBuilder.textField()
                            .withName("Text3")
                            .withValue("Third Injected Value"))
                    .withInjectedField(
                        FieldBuilder.textField()
                            .withName("Text4")
                            .withValue("Fourth Injected Value"))
                    .withInjectedField(
                        FieldBuilder.textField()
                            .withName("Text5")
                            .withValue("Fifth Injected Value"))
                    .withInjectedField(
                        FieldBuilder.textField()
                            .withName("Text6")
                            .withValue("À à Â â Æ æ Ç ç È è É é Ê ë")))
            .build();

    packageId = eslClient.createPackage(superDuperPackage);
    retrievedPackage = eslClient.getPackage(packageId);
  }