code: @SuppressWarnings("unchecked")
      public Permission getPermission(final String name) {
          final Query query = pm.newQuery(Permission.class, "name == :name");
          final List<Permission> result = (List<Permission>) query.execute(name);
          return Collections.isEmpty(result) ? null : result.get(0);
      }
docs: Retrieves a Permission by its name.
  @param name The name of the permission
  @return a Permission
  @since 1.1.0