private boolean initTransition(Transition transition,Form source,Form dest){
  try {
    dest.setVisible(true);
    transition.init(source,dest);
    if (source != null) {
      source.setLightweightMode(true);
    }
    if (dest != null) {
      dest.setLightweightMode(true);
    }
    transition=impl.getNativeTransition(transition);
    animationQueue.add(transition);
    if (animationQueue.size() == 1) {
      transition.initTransition();
    }
  }
 catch (  Throwable e) {
    e.printStackTrace();
    transition.cleanup();
    animationQueue.remove(transition);
    return false;
  }
  return true;
}

private boolean initTransition ( Transition transition , Form source , Form dest ) { try { dest . setVisible ( true ) ; transition . init ( source , dest ) ; if ( source != null ) { source . setLightweightMode ( true ) ; } if ( dest != null ) { dest . setLightweightMode ( true ) ; } transition = impl . getNativeTransition ( transition ) ; animationQueue . add ( transition ) ; if ( animationQueue . size ( ) == 1 ) { transition . initTransition ( ) ; } } catch ( Throwable e ) { e . printStackTrace ( ) ; transition . cleanup ( ) ; animationQueue . remove ( transition ) ; return false ; } return true ; }
initialize the transition and add it to the queue
