code: public static Map<String, String> resource(String type, Map<String, String> meta) {
          HashMap<String, String> authResource = new HashMap<String, String>();
          if (null != meta) {
              authResource.putAll(meta);
          }
          authResource.put(TYPE_FIELD, type);
          return authResource;
      }
docs: Return a resource map for a resource of a certain type, with attributes
  
  @param type the type name
  @param meta the attributes about the resource
  
  @return the resource map