runtimeMetaData.setEnvironment( rubyAppMetaData.getEnvironmentVariables() );
runtimeMetaData.setRuntimeType( RubyRuntimeMetaData.RuntimeType.RACK );
runtimeMetaData.appendLoadPath( new RubyLoadPathMetaData( rubyAppMetaData.getRoot() ) );
runtimeMetaData.appendLoadPath( new RubyLoadPathMetaData( new File( rubyAppMetaData.getRoot(), "lib" ) ) );
RuntimeInitializer initializer = new RackRuntimeInitializer( rubyAppMetaData, rackAppMetaData );
RuntimePreparer preparer = new BundlerAwareRuntimePreparer( rubyAppMetaData );
runtimeMetaData.setRuntimeInitializer( initializer );
runtimeMetaData.setRuntimePreparer( preparer );
}