protected L instantiateLaunchable ( ) throws CouldNotPerformException { try { return launchableClass . newInstance ( ) ; } catch ( java . lang . InstantiationException | IllegalAccessException ex ) { throw new CouldNotPerformException ( "Could not load launchable class!" , ex ) ; } }
Method creates a launchable instance without any arguments .. In case the launchable needs arguments you can overwrite this method and instantiate the launchable by ourself .