Offline expansion of XACML policies based on P3P metadata