runtimeMetaData.setRuntimeType( RubyRuntimeMetaData.RuntimeType.RAILS );
runtimeMetaData.appendLoadPath( new RubyLoadPathMetaData( rubyAppMetaData.getRoot() ) );
runtimeMetaData.appendLoadPath( new RubyLoadPathMetaData( new File( rubyAppMetaData.getRoot(), "lib" ) ) );
RuntimeInitializer initializer = new RailsRuntimeInitializer( rubyAppMetaData, rackAppMetaData, railsAppMetaData );
RuntimePreparer preparer = new BundlerAwareRuntimePreparer( rubyAppMetaData );
runtimeMetaData.setRuntimeInitializer( initializer );
runtimeMetaData.setRuntimePreparer( preparer );
}