AWResourceManager resourceManager = requestContext.getCurrentComponent().resourceManager();
AWResource resource = null;
if (baseResourcePath != null) {
AWResource baseResource = resourceManager.resourceNamed(baseResourcePath);
if (baseResource != null) {
resource = baseResource.relativeResource(relativePath, resourceManager);
}
}
if (resource == null) resource = resourceManager.resourceNamed(relativePath);