protected ResourceInstance createResource(String userName, String sourceId) {
    final Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.User, StringUtils.lowerCase(userName));
    mapIds.put(Resource.Type.UserAuthenticationSource, sourceId);
    return createResource(Resource.Type.UserAuthenticationSource, mapIds);
  }
Delete an authentication source.
Handles: DELETE /users/{userName}/sources/{sourceId}

@param headers  http headers
@param ui       uri info
@param userName user name
@param sourceId authentication source id
@return information regarding the created user
ambari-server/src/main/java/org/apache/ambari/server/api/services/users/UserAuthenticationSourceService.java