static String parseInstructionFile(S3Object instructionFile) {
        try {
            return convertStreamToString(instructionFile.getObjectContent());
        } catch (Exception e) {
            throw failure(e, "Error parsing JSON instruction file");
        }
    }
static String parseInstructionFile ( S3Object instructionFile ) { try { return convertStreamToString ( instructionFile . getObjectContent ( ) ) ; } catch ( Exception e ) { throw failure ( e , "Error parsing JSON instruction file" ) ; } }
Parses instruction data retrieved from S3 and returns a JSON string
representing the instruction. Made for testing purposes.