private ResourceInstance createEventResource(String eventId) {
    return createResource(Resource.Type.LdapSyncEvent,
        Collections.singletonMap(Resource.Type.LdapSyncEvent, eventId));
  }
Create a view resource.

@param eventId the event id

@return an event resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/LdapSyncEventService.java