public function getRoleNamesAsArray()
{
// initialize the array for the role names
$roleNames = array();
// prepare the role names
/** @var AppserverIo\Appserver\Core\Api\Node\RoleNameNode $roleName */
foreach ($this->getRoleNames() as $roleName) {
$roleNames[] = $roleName->__toString();
}
// return the array with the role names
return $roleNames;
}