@PathParam("stream") final String stream,
@PathParam("attribute") final String attribute)
{
Cache<Object, Object> samplesCache = null;
final ResourceListener resourceListener = (ResourceListener) compiler.getPublisherInstances().get(stream);
if (resourceListener != null) {
final Map<String, Cache<Object, Object>> samples = resourceListener.getSamplesCache();
samplesCache = samples.get(attribute);
}
return buildJsonpResponse(attribute, samplesCache, callback);
}