public ServiceContext get(Integer id) { Object result = scMap.get(id); if (result == null) return null; // Lazy unmarshaling on first use. if (result instanceof byte[]) { ServiceContext sc = unmarshal(id, (byte[]) result); scMap.put(id, sc); return sc; } else { return (ServiceContext) result; } }
public ServiceContext get(Integer id) { Object result = scMap.get(id); if (result == null) return null; // Lazy unmarshaling on first use. if (result instanceof byte[]) { ServiceContext sc = unmarshal(id, (byte[]) result); scMap.put(id, sc); return sc; } else { return (ServiceContext) result; } }