private ResourceInstance createResource(String userName) {
    Map<Resource.Type,String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.User, StringUtils.lowerCase(userName));
    return createResource(Resource.Type.ActiveWidgetLayout, mapIds);
  }
@param body      body
@param headers   http headers
@param ui        uri info
@param userName  user name
@return
ambari-server/src/main/java/org/apache/ambari/server/api/services/users/ActiveWidgetLayoutService.java