public function removeInheritedProperties()
{
$myProperties = $this->getProperties();
if ($myProperties) {
foreach ($this->getProperties() as $name => $property) {
if ($property->getInherited()) {
unset($myProperties[$name]);
}
}
}
$this->setProperties($myProperties);
}