private ComponentConfiguration readComponentConfiguration(SlingHttpServletRequest request) {
ComponentConfiguration componentConfiguration = new ComponentConfiguration(logger);
if ((resourceType != null) && (path != null)) {
ComponentManager componentManager = request.getResourceResolver().adaptTo(ComponentManager.class);
if (componentManager != null) {
Component component = componentManager.getComponent(resourceType);
if (component != null) {
componentConfiguration.readFromComponent(component);
} else {
logger.warn("Cannot read component configuration for '{}' at {}", resourceType, path);
}