public static function buildResult(tao_install_services_Data $data, common_configuration_Report $report, common_configuration_Component $component)
 {
     $content = json_decode($data->getContent(), true);
     $rights = $content['value']['rights'];
     $id = $content['value']['id'];
     $root = dirname(__FILE__) . '/../../../';
     $data = array('type' => 'FileSystemComponentReport', 'value' => array('status' => $report->getStatusAsString(), 'message' => $report->getMessage(), 'id' => $id, 'optional' => $component->isOptional(), 'isReadable' => $component->isReadable(), 'isWritable' => $component->isWritable(), 'isExecutable' => $component->isExecutable(), 'recursive' => $component->getRecursive(), 'expectedRights' => $rights, 'isFile' => is_file($root . $component->getLocation()), 'location' => $component->getLocation()));
     return new tao_install_services_Data(json_encode($data));
 }