protected ResourceInstance createPermissionResource(String permissionId) {
    return createResource(Resource.Type.Permission,
        Collections.singletonMap(Resource.Type.Permission, permissionId));
  }
Create a permission resource.

@param permissionId permission name

@return a permission resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/PermissionService.java