axiom-core/src/main/java/org/axiom/service/Launcher.java
@SuppressWarnings({"unchecked"})
    private void reconfigureExistingRoutes(final ControlChannel channel) {
        Configuration config = channel.getConfig();
        //NB: This unchecked operation is actually quite safe in practise
        map(typedCollection(locateRouteScripts(config), File.class),
            new Operation<File>() {
                @Override public void apply(final File input) {
                    final String script = input.getAbsolutePath();
                    logger.debug("Restoring routes from '{}'.", script);
                    channel.configure(new RouteScriptLoader(script,
                        channel.getRouteScriptEvaluator()));
                }
            });
    }
/**
     * Reconfigure any routes that already exist in the relevant
     * location on the file system.
     * @param channel The channel to reconfigure.
     */
Reconfigure any routes that already exist in the relevant
location on the file system.
@param channel The channel to reconfigure.
Reconfigure any routes that already exist in the relevant location on the file system . @param channel The channel to reconfigure .
@SuppressWarnings({"unchecked"})
    private void reconfigureExistingRoutes(final ControlChannel channel) {
        Configuration config = channel.getConfig();
        map(typedCollection(locateRouteScripts(config), File.class),
            new Operation<File>() {
                @Override public void apply(final File input) {
                    final String script = input.getAbsolutePath();
                    logger.debug("Restoring routes from '{}'.", script);
                    channel.configure(new RouteScriptLoader(script,
                        channel.getRouteScriptEvaluator()));
                }
            });
    }
@ SuppressWarnings ( { "unchecked" } ) private void reconfigureExistingRoutes ( final ControlChannel channel ) { Configuration config = channel . getConfig ( ) ; map ( typedCollection ( locateRouteScripts ( config ) , File . class ) , new Operation < File > ( ) { @ Override public void apply ( final File input ) { final String script = input . getAbsolutePath ( ) ; logger . debug ( "Restoring routes from '{}'." , script ) ; channel . configure ( new RouteScriptLoader ( script , channel . getRouteScriptEvaluator ( ) ) ) ; } } ) ; }
Reconfigure any routes that already exist in the relevant
 location on the file system.
Reconfigure any routes that already exist in the relevant location on the file system .
//NB: This unchecked operation is actually quite safe in practise