Why not do this in one line?
  cerP->contextElement.entityId.fill(en.id, en.type, "false");