code: function getClassNames(classes) {
    if (!classes) {
      throw new BuildException(
        exceptions.NullPointer, 'The classes object cannot be nil.');
    }
    const object = {};
    Object.keys(classes).forEach((classId) => {
      object[classId] = classes[classId].name;
    });
    return object;
  }
docs: Gets the class' names.
  @param classes the classes
  @returns {Object} an object containing all the class' names by their id.
  @throws {NullPointerException} if the passed object is nil.