/*
(non-Javadoc)

@see java.util.ResourceBundle#handleGetObject(java.lang.String)
549376
@Override
  protected Object handleGetObject(String key) {
    for (ResourceBundle b : bundles) {
      try {
        return b.getObject(key);
      } catch (MissingResourceException mre) {
        // iterate
      }
    }
    throw new MissingResourceException(null, null, key);
  }
1290867
private void readObject(java.io.ObjectInputStream objectInputStream)
                    throws java.io.IOException
                    , java.lang.ClassNotFoundException
    {
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this, cclass,
                        "readObject",
                        "objectInputStream=" + objectInputStream + "(java.io.ObjectInputStream)");

        objectInputStream.defaultReadObject();
        // We cannot set the available head during recovery because the links may get deleted before
        // recovery is complete, instead force a scan when we use availableHead for the first time.    
        availableHead = null;
        availableSize = size; // All links are initially available.
        availableSizeLock = new Object();
        managedObjectsToAdd = new java.util.ArrayList(1);
        managedObjectsToReplace = new java.util.ArrayList(3);
        tokensToNotify = new java.util.ArrayList(1);

        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this, cclass,
                       "readObject");
    }
86761
void handleGet(Object value, 
  		           MatchSpaceKey msg, 
  		           EvalCache cache,
                   Object contextValue,
  		           SearchResults result)
  throws MatchingException, BadMessageFormatMatchingException
  {
    if (tc.isEntryEnabled())
	    tc.entry(this,cclass, "handleGet","value: "+value+ ",msg: "+msg+", context: "+contextValue+", result: "+result);      
	    	
    if (!(value instanceof Boolean)) // was BooleanValue
      return;
    if (value != null && ((Boolean) value).booleanValue()) // was BooleanValue
      if (trueChild != null)
        trueChild.get(null, msg, cache, contextValue, result);
      else;
    else if (falseChild != null)
      falseChild.get(null, msg, cache, contextValue, result);

    if (tc.isEntryEnabled())
	    tc.exit(this,cclass, "handleGet");      
  }
868435
@Override
    public Object get(int index, Scriptable start) {
        if (0 <= index && index < string.length()) {
            return String.valueOf(string.charAt(index));
        }
        return super.get(index, start);
    }
358846
@Override
  public Response handle() throws Exception {
    JSONObject payload = getRequest().getPayload();
    String type = payload.optString("type");
    if ("page load".equals(type)) {
      long timeout = payload.getLong("ms");
      // meant for driver.get command
      CommandConfiguration conf = getSession().configure(WebDriverLikeCommand.URL);
      conf.set("page load", timeout);
    } else {
      throw new UnsupportedCommandException("timeout " + payload + " NI");
    }
    Response res = new Response();
    res.setSessionId(getSession().getSessionId());
    res.setStatus(0);
    res.setValue(new JSONObject());
    return res;
  }
473769
@Override
    protected void handleJSONMessage(JSONObject obj) throws Exception {
        hostLog.warn("SystemCatalogAgent received a JSON message, which should be impossible.");
        VoltTable[] results = null;
        sendOpsResponse(results, obj);
    }
1286397
@SuppressWarnings("unchecked")
    @Override
    public <T extends Object> T fetchObject(Class<T> clazz, String id) {
        if (StringUtils.isEmpty(id)) {
            return null;
        }
        
        String json = VistAUtil.getBrokerSession().callRPC("RGSER FETCH", PREFIX + getAlias(clazz), id);
        return (T) JSONUtil.deserialize(json);
    }
457763
@Override
	public Object getObject(final String columnLabel) throws SQLException {
		Object val = getWrapped().getObject(columnLabel);
		if (this.cryptColumnNames.contains(CaseFormat.UPPER_SNAKE_CASE.convert(columnLabel)) && val instanceof String) {
			return decode.apply(val);
		} else {
			return val;
		}
	}
873610
@Override
    public final <RS> Maybe<Response<RS>> get(String resource, Class<RS> clazz)
            throws RestEndpointIOException {
        HttpGet get = new HttpGet(spliceUrl(resource));
        return executeInternal(get, new ClassConverterCallback<RS>(serializers, clazz));
    }
578987
@Override
    public String handle(final Object value) {
        if (value instanceof NominatimRequest) {
            return ((NominatimRequest) value).getQueryString();
        } else {
            return value.toString();
        }
    }
623581
@Override
    public Object get(String name, ObjectFactory<?> objectFactory) {
        final HttpSession session = this.getPortalSesion(true);

        final Object sessionMutex = WebUtils.getSessionMutex(session);
        synchronized (sessionMutex) {
            Object scopedObject = session.getAttribute(name);
            if (scopedObject == null) {
                scopedObject = objectFactory.getObject();
                session.setAttribute(name, scopedObject);
            }

            return scopedObject;
        }
    }
1144986
public void handleGet(HttpRequest request, HttpResponse response) throws HttpException, IOException {
        String uri = request.getRequestLine().getUri();
        LOG.debug("uri {}", uri);
        try {
            ResponseUpdater ru = this.findResponseUpdater(request);
            LOG.debug("request updater {}", ru);
            ru.update(response);
        } catch (IllegalStateException t) {
            LOG.error("Cannot handle request", t);
            throw new HttpException("Cannot handle request", t);
        }
    }
1092478
@Override
    public final T get() {
        if (obj == null) {
            synchronized (lock) {
                if (obj == null) {
                    obj = create();
                }
            }
        }
        return obj;
    }
391817
public JSONObject getJSONObject(String name) throws JSONException {
		Object object = get(name);
		if (object instanceof JSONObject) {
			return (JSONObject) object;
		}
		else {
			throw JSON.typeMismatch(name, object, "JSONObject");
		}
	}
805571
@Override
    public RequestCtx handleResponse(SOAPMessageContext context)
            throws OperationHandlerException {
        try {
            Object response = getSOAPResponseObject(context);
            org.fcrepo.server.types.gen.FieldSearchResult result =
                (org.fcrepo.server.types.gen.FieldSearchResult) callGetter("getResult",response);
            result =
                filter(context, result);
            Method setter = response.getClass().getDeclaredMethod("setResult",
                    org.fcrepo.server.types.gen.FieldSearchResult.class);
            setter.invoke(response, result);
            setSOAPResponseObject(context, response);
        } catch (Exception e) {
            logger.error("Error filtering Objects", e);
            throw new OperationHandlerException("Error filtering Objects", e);
        }

        return null;
    }
239825
@Override
  public Object get(Object obj) {
    String key = this.keyOf(obj);
    return this.getByKey(key);
  }
731855
@Override
    public <T> T get(EntityGetOperation<T> getter) throws ServiceException {
        try {
            return service.get(getter);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }
    }