/** * Returns the metadata (eai:acl) of this entity. This data includes * permissions for accessing the resource, and values that indicate * which resource fields are wildcards, required, and optional. * * @return The metadata of this entity, or {@code null} if none exist. */ public EntityMetadata getMetadata() { // CONSIDER: For entities that don't have an eai:acl field, which is // uncommon but does happen at least in the case of a DeploymentClient // that is not enabled, we return null. A slightly friendlier option // would be to return a metadata instance that defaults all values? if (!containsKey("eai:acl")) return null; return new EntityMetadata(this); }