* @return a Module containing all of the requests and metadata for the
* given file
*/
public GarglModule parseAndConvert() {
// Initialize JSON parser
Gson gson = new Gson();
String output = new String();
try {
output = readFile(filename);
} catch (FileNotFoundException e) {
System.out.println("Error: " + filename
+ " does not exist, please specify another file");
System.exit(0);
} catch (IOException e) {
e.printStackTrace();
}
// Get metadata for the Module
List<JsonElement> requestElements = new ArrayList<JsonElement>();
JsonObject moduleJsonObject = gson.fromJson(output, JsonObject.class);
JsonElement moduleNameElement = moduleJsonObject.get("moduleName");
JsonElement moduleDescriptionElement = moduleJsonObject.get("moduleDescription");
JsonElement moduleVersionElement = moduleJsonObject.get("moduleDescription");