protected function getPathInResources($path)
  {
    if (strncmp($path, $this->parentResourceDirFullPath, strlen($this->parentResourceDirFullPath))!=0)
    {
      throw new \BuildException(sprintf("Resource file '%s' is not under resource dir '%s'.",
                                        $path,
                                        $this->parentResourceDirFullPath));
    }

    return substr($path, strlen($this->parentResourceDirFullPath));
  }