Target target = CFActivator.getDefault().getTargetRegistry().getTarget(userId, targetUrl);
if (target == null) {
return HttpUtil.createErrorStatus(IStatus.WARNING, "CF-TargetNotSet", "Target not set");
}
return new GetInfoCommand(this.userId, target.getCloud()).doIt();
} catch (Exception e) {
String msg = NLS.bind("Failed to handle request for {0}", path); //$NON-NLS-1$
ServerStatus status = new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg, e);
logger.error(msg, e);
return status;