not accesible Period and Priority defined from XML

Dear all,

I have a Component configurated with the next Activity:

     <struct name="Activity" type="Activity">
      <simple name="Period" type="double"><value>1</value></simple>
      <simple name="Priority" type="short"><value>1</value></simple>
      <simple name="Scheduler" type="string"><value>ORO_SCHED_RT</value></simple>

But I try to load this parameters on the Constructor using:

  this->getPeriod();  // or this->getActivity()->thread()->getPeriod()

but always return "0".... How I can access correctly to this data ? it is a bug or I'm wrong?

Thanks in advance