// It should work in all containers, server/client side
UnifiedVirtualFile vfPolicyFile = vfRoot.findChild(policyFileLocation);
is = vfPolicyFile.toURL().openStream();
DOMPolicyReader reader = (DOMPolicyReader)PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
Policy unnormalizedPolicy = reader.readPolicy(is);
Policy normPolicy = (Policy)unnormalizedPolicy.normalize();
log.info("Deploying Annotated Policy = " + policyFileLocation);
PolicyScopeLevel scope = anPolicy.scope();
if (PolicyScopeLevel.WSDL_PORT.equals(scope) || PolicyScopeLevel.WSDL_PORT_TYPE.equals(scope) || PolicyScopeLevel.WSDL_BINDING.equals(scope))
{
deployPolicy(normPolicy, scope, epMetaData);