private ResourceInstance createUserResource(String userName) {
    return createResource(Resource.Type.User,
        Collections.singletonMap(Resource.Type.User, userName));
  }
Create a user resource instance.

@param userName user name
@return a user resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/users/UserService.java