Update Javadoc samples to use EmbeddedApplications static factory methods (#299)