private ResourceInstance createViewUrlResource(final String urlName) {
    return createResource(Resource.Type.ViewURL, Collections.singletonMap(Resource.Type.ViewURL, urlName));
  }
Create a view URL resource.

@param urlName Name of the URL

@return a view URL resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/views/ViewUrlsService.java