if (o instanceof List<?>) {
if (((List<?>) o).get(0) != null) {
if (((List<?>) o).get(0) instanceof PropertyDescription) {
propDescs = (List<PropertyDescription>) o;
} else {
throw new BuildPDFAExtensionSchemaDescriptionException(
"Failed to get correct properties descriptions from specified XML stream");
}
} else {
throw new BuildPDFAExtensionSchemaDescriptionException(
"Failed to find a properties description into the specified XML stream");
}
}
} catch (Exception e) {
throw new BuildPDFAExtensionSchemaDescriptionException(
"Failed to get correct properties descriptions from specified XML stream",
e.getCause());
} finally {
IOUtils.closeQuietly(is);
}