return new CFJob(request, false) {
@Override
protected IStatus performJob() {
try {
ComputeTargetCommand computeTargetCommand = new ComputeTargetCommand(userId, targetJSON);
computeTargetCommand.doIt();
Target target = computeTargetCommand.getTarget();
if (target == null)
return HttpUtil.createErrorStatus(IStatus.WARNING, "CF-TargetNotSet", "Target not set"); //$NON-NLS-1$
return new GetServiceInstancesCommand(target).doIt();