public Class<?> getServiceClass(ClassLoader cl) throws ClassNotFoundException {
    if (serviceClass == null) {
      serviceClass = cl.loadClass(service);
    }
    return serviceClass;
  }
Get the resource service class.

@param cl  the class loader

@return the resource service class

@throws ClassNotFoundException if the class can not be loaded
ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ResourceConfig.java