public void addMetaObject(MetaObject object){
  for (int k=0; k < MetaObjects.size(); ++k) {
    if (MetaObjects.get(k) == null) {
      MetaObjects.set(k,object);
      return;
    }
  }
  MetaObjects.add(object);
}

public void addMetaObject ( MetaObject object ) { for ( int k = 0 ; k < MetaObjects . size ( ) ; ++ k ) { if ( MetaObjects . get ( k ) == null ) { MetaObjects . set ( k , object ) ; return ; } } MetaObjects . add ( object ) ; }
add a metaobject to the state .
