catch (PrivilegedActionException pae)
{
Throwable cause = pae.getCause();
if (cause instanceof InvalidFormatException)
{
throw new DocumentReadException("Can't read properties from OOXML document", cause);
}
else if (cause instanceof OpenXML4JException)
{
throw new DocumentReadException("Can't read properties from OOXML document", cause);
}
else if (cause instanceof XmlException)
{
throw new DocumentReadException("Can't read properties from OOXML document", cause);
}
else if (cause instanceof RuntimeException)
{
throw (RuntimeException)cause;
}