symlinkLocation = chroot + symlinkLocation;
}
ResourceServiceClient client =
new ResourceServiceClient(cookie, config, request.getSession());
if (JavaUtils.isTrueExplicitly(isAsync)) {
client.importResource(parentPath, resourceName, mediaType, description, fetchURL, symlinkLocation, true);
} else {
client.importResource(parentPath, resourceName, mediaType, description, fetchURL, symlinkLocation, false);
}
} catch (Exception e) {
// having additional details will make the error message long