SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
final SignatureFileVersionHandler handler = new SignatureFileVersionHandler();
try {
SAXParser saxParser = saxParserFactory.newSAXParser();
saxParser.parse(sigFile, handler);
throw new SignatureFileException(String.format(
INVALID_SIGNATURE_FILE, sigFile), ErrorCode.INVALID_SIGNATURE_FILE);
} catch (ValidSignatureFileException e) {
return e.getInfo();
} catch (SAXException e) {
throw new SignatureFileException(String.format(
INVALID_SIGNATURE_FILE, sigFile), e,
ErrorCode.INVALID_SIGNATURE_FILE);
} catch (ParserConfigurationException e) {
throw new RuntimeException(e.getMessage(), e);
} catch (IOException e) {