log.debug("Unable to determine chroot. Symbolic Link cannot be created");
}
if (symlinkLocation != null) {
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
String msg = e.getMessage();
log.error(msg, e);