/** * Gets the resource partition key associated with this permission object. * * @return the partition key. */ public PartitionKey getResourcePartitionKey() { PartitionKey key = null; Object value = super.get(Constants.Properties.RESOURCE_PARTITION_KEY); if (value != null) { JSONArray arrayValue = (JSONArray) value; key = new PartitionKey(arrayValue.get(0)); } return key; }