function getEntityName(jsonPointer) {
  if (!jsonPointer) {
    return '';
  }
  let segment = jsonPointer.substring(jsonPointer.lastIndexOf(jsonPointerLevelSeparator) + 1);
  return segment;
}
Extracts the entity's name from the json pointer
@param {string} jsonPointer - pointer to get the name from
@returns {boolean} - string: the name of the entity