public static AnchorPane loadAnchorPane(final FXMLLoader loader){
  try {
    return (AnchorPane)loader.load();
  }
 catch (  IOException e) {
    throw new CriticalException("Cannot load FXML",e);
  }
}

public static AnchorPane loadAnchorPane ( final FXMLLoader loader ) { try { return ( AnchorPane ) loader . load ( ) ; } catch ( IOException e ) { throw new CriticalException ( "Cannot load FXML" , e ) ; } }
loads an anchor pane using the supplied loader .
