response.setStatus(target.put(request.getEntity()).getStatus());
Result result = target.put(request.getEntity()); response.setStatus(result.getStatus()); response.setRedirectRef(result.getRedirectionRef());
	protected void handlePut(Request request, Response response)	{		Resource target = findTarget(request, response);		if (target != null)		{			if (target.allowPut())			{				if (request.isEntityAvailable())				{					response.setStatus(target.put(request.getEntity()).getStatus());				}				else				{					response.setStatus(new Status(Status.CLIENT_ERROR_NOT_ACCEPTABLE,							"Missing request entity"));				}			}			else			{				response.setStatus(Status.CLIENT_ERROR_METHOD_NOT_ALLOWED);			}		}		else		{			defaultHandle(request, response);		}	}