load() {
    if(!this.isInitialized) {
      return this.withLock(() => {
        var msg = new message.GetAllSchemas();

        return this.entityManagerFactory.send(msg).then((response) => {
          this.init(response.entity);
          return this;
        });
      });
    } else {
      throw new Error("Metamodel is already initialized.");
    }
  }
/**
   * Load all schema data from the server
   * @returns {Promise<metamodel.Metamodel>}
   */
Load all schema data from the server
@returns {Promise}
Load all schema data from the server @returns { Promise }
load() {
    if(!this.isInitialized) {
      return this.withLock(() => {
        var msg = new message.GetAllSchemas();
        return this.entityManagerFactory.send(msg).then((response) => {
          this.init(response.entity);
          return this;
        });
      });
    } else {
      throw new Error("Metamodel is already initialized.");
    }
  }
load ( ) { if ( ! this . isInitialized ) { return this . withLock ( ( ) => { var msg = new message . GetAllSchemas ( ) ; return this . entityManagerFactory . send ( msg ) . then ( ( response ) => { this . init ( response . entity ) ; return this ; } ) ; } ) ; } else { throw new Error ( "Metamodel is already initialized." ) ; } }
Load all schema data from the server
 @returns {Promise<metamodel.Metamodel>}
Load all schema data from the server @returns { Promise<metamodel . Metamodel > }