public void createServices(AddServiceInfo request) {
    LOG.info("Creating service resources for {}", request);

    Set<Map<String, Object>> properties = request.newServices().keySet().stream()
      .map(service -> createServiceRequestProperties(request, service))
      .collect(toSet());

    createResources(request, Resource.Type.Service, properties, null, false);
  }
Creates resources using the resource providers.
Translates {@link AddServiceInfo} to internal requests accepted by those.
ambari-server/src/main/java/org/apache/ambari/server/topology/addservice/ResourceProviderAdapter.java