public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('metrics', 'choice', array('label' => 'Metrics', 'choices' => Profile::getMetricsArray(), 'expanded' => true, 'multiple' => true, 'constraints' => array(new Assert\NotBlank(array('message' => 'Please choose at least one metric')))));
     $builder->add('segment', 'choice', array('label' => 'Segments', 'choices' => Profile::getSegmentsArray(), 'expanded' => true, 'multiple' => false));
 }