public function append(PuliResource $resource)
{
if (null === $this->json) {
$this->load();
}
if (!isset($this->json[$resource->getPath()])) {
$this->json[$resource->getPath()] = array();
}
$this->json[$resource->getPath()][] = serialize($resource);
$this->flush();
}