/**
  * Makes new Project Object and sets the values from the incoming data.
  * @param $data
  * @return Project
  */
 public static function buildProjectDetailFromArray($data)
 {
     $project = new Project();
     $project->setLead($data['lead']['displayName']);
     $project->setDescription($data['description']);
     $project->setAssigneeType($data['assigneeType']);
     if (!in_array('projectCategory', $data)) {
         null;
     } else {
         $project->setCategory($data['projectCategory']['name']);
     }
     if (!in_array('url', $data)) {
         null;
     } else {
         $project->setUrl($data['url']);
     }
     return $project;
 }