public Policy readPolicy(InputStream in) {
try {
XMLStreamReader reader = XMLInputFactory.newInstance()
.createXMLStreamReader(in);
OMXMLParserWrapper builder = OMXMLBuilderFactory
.createStAXOMBuilder(OMAbstractFactory.getOMFactory(),
reader);
OMElement element = builder.getDocumentElement();
return readPolicy(element);
} catch (XMLStreamException ex) {
throw new RuntimeException("error : " + ex.getMessage());
}