/**
  * Converts a JSON string into an object containing pipeline template information.
  *
  * @param pipelineTemplate A JSON string representing the pipeline template.
  * @return The pipeline template info object.
  * @throws JsonSyntaxException Something is wrong with the JSON syntax. .
  */
 @SuppressWarnings("unused")
 public static Pipeline templateFromJson(final String pipelineTemplate) {
   checkOnPipelineMembers(pipelineTemplate);
   Pipeline pipeline = gson.fromJson(pipelineTemplate, Pipeline.class);
   checkOnRequestsMembers(toJson(pipeline.getSerializedRequests()));
   String invalid = pipeline.isValid();
   if (!invalid.isEmpty()) {
     throw new JsonSyntaxException(invalid);
   }
   return gson.fromJson(pipelineTemplate, Pipeline.class);
 }