code: public static String nameFromResourceId(String id) {
          return (id != null) ? ResourceId.fromString(id).name() : null;
      }
docs: Extract name of the resource from a resource ID.
  @param id the resource ID
  @return the name of the resource