public byte[] readAsBytes() throws DescriptorIOException { try { return FileUtils.readFileToByteArray(new File(locator.getURI().getPath())); } catch (IOException ex) { throw new DescriptorIOException("Cannot read descriptor: " + locator.getLastName(), ex); } }