public PolicyInventory createPolicy(String name, List<Statement> s) throws ApiSenderException { DebugUtils.Assert(account != null, "please call createAccount() before createPolicy()"); PolicyInventory p = api.createPolicy(name, s, accountSession); policies.put(p.getName(), p); return p; }