+
+ /**
+ * Create a BabelRequest containing the encoded CSAR content by passing in the artifact version.
+ *
+ * @return a new Babel request for this CSAR
+ * @throws IOException
+ * if an I/O exception occurs
+ */
+ public String getJsonRequestWithArtifactVersion(String artifactVersion) throws IOException {
+ BabelRequest request = new BabelRequest();
+ request.setArtifactName(getName());
+ request.setArtifactVersion(artifactVersion);
+ request.setCsar(new String(GeneratorUtil.encode(getContent())));
+ return new Gson().toJson(request);
+ }