Buggy code:
String workingDir = System . getProperty ( "user.dir" ) ; Host host = new Host ( ringHost . getHost ( ) , ringHost . getHost ( ) , ringHost . getPort ( ) , workingDir , null ) ; HostKey hostKey = upenaStore . hosts . toKey ( host ) ; Host gotHost = upenaStore . hosts . get ( hostKey ) ; if ( gotHost == null ) { host = new Host ( ringHost . getHost ( ) , ringHost . getHost ( ) , ringHost . getPort ( ) , workingDir , null ) ; upenaStore . hosts . update ( null , host ) ; } final UbaService ubaService = new UbaServiceInitializer ( ) . initialize ( hostKey . getKey ( ) , workingDir , ringHost . getHost ( ) , ringHost . getPort ( ) ) ; JerseyEndpoints jerseyEndpoints = new JerseyEndpoints ( ) . addEndpoint ( UpenaRestEndpoints . class ) . addInjectable ( upenaService ) . addInjectable ( upenaStore ) . addEndpoint ( UpenaConfigRestEndpoints . class ) . addInjectable ( upenaConfigStore ) . addEndpoint ( UbaServiceRestEndpoints . class ) . addInjectable ( ubaService ) . addEndpoint ( AmzaReplicationRestEndpoints . class ) . addInjectable ( AmzaInstance . class , amzaService ) . addEndpoint ( UpenaEndpoints . class ) . addInjectable ( RingHost . class , ringHost ) ; SoyFileSet . Builder soyFileSetBuilder = new SoyFileSet . Builder ( ) ; System . out . println ( "Add...." ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//chrome.soy" ) , "chome.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//homeRegion.soy" ) , "home.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//statusPluginRegion.soy" ) , "status.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//instancesPluginRegion.soy" ) , "instances.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//clustersPluginRegion.soy" ) , "clusters.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//hostsPluginRegion.soy" ) , "hosts.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//servicesPluginRegion.soy" ) , "services.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//releasesPluginRegion.soy" ) , "releases.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//upenaRingPluginRegion.soy" ) , "upenaRing.soy" ) ; soyFileSetBuilder . add ( this . getClass ( ) . getResource ( "//resources//soy//configPluginRegion.soy" ) , "config.soy" ) ; System . out . println ( "Build...." ) ; SoyFileSet sfs = soyFileSetBuilder . build ( ) ; System . out . println ( "Compile...." ) ; SoyTofu tofu = sfs . compileToTofu ( ) ; SoyRenderer renderer = new SoyRenderer ( tofu , new SoyDataUtils ( ) ) ; SoyService soyService = new SoyService ( renderer , new com . jivesoftware . os . upena . deployable . region . HeaderRegion ( "soy.chrome.headerRegion" , renderer ) , new com . jivesoftware . os . upena . deployable . region . HomeRegion ( "soy.page.homeRegion" , renderer ) ) ; <START_BUG> List < ManagePlugin > plugins = Lists . newArrayList ( new ManagePlugin ( "Status" , "//status" , StatusPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . StatusPluginRegion ( "soy.page.statusPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Instances" , "//instances" , InstancesPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . InstancesPluginRegion ( "soy.page.instancesPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Config" , "//Config" , ConfigPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . ConfigPluginRegion ( "soy.page.configPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Clusters" , "//clusters" , ClustersPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . ClustersPluginRegion ( "soy.page.clustersPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Hosts" , "//hosts" , HostsPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . HostsPluginRegion ( "soy.page.hostsPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Services" , "//services" , ServicesPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . ServicesPluginRegion ( "soy.page.servicesPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Releases" , "//releases" , ReleasesPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . ReleasesPluginRegion ( "soy.page.releasesPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Upena<seq2seq4repair_space>Ring" , "//ring" , UpenaRingPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . UpenaRingPluginRegion ( "soy.page.upenaRingPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) ) ; <END_BUG> jerseyEndpoints . addInjectable ( SoyService . class , soyService ) ; for ( ManagePlugin plugin : plugins ) { soyService . registerPlugin ( plugin ) ; jerseyEndpoints . addEndpoint ( plugin . endpointsClass ) ; jerseyEndpoints . addInjectable ( plugin . region . getClass ( ) , plugin . region ) ; } InitializeRestfulServer initializeRestfulServer = new InitializeRestfulServer ( port , "UpenaNode" , 128 , 10000 ) ; initializeRestfulServer . addClasspathResource ( "//" ) ; initializeRestfulServer . addContextHandler ( "//" , jerseyEndpoints ) ; RestfulServer restfulServer = initializeRestfulServer . build ( ) ; restfulServer . start ( ) ; System . out . println ( "-----------------------------------------------------------------------" ) ; System . out . println ( "|<seq2seq4repair_space>Jetty<seq2seq4repair_space>Service<seq2seq4repair_space>Online" ) ; System . out . println ( "-----------------------------------------------------------------------" ) ;

Fix:
List < ManagePlugin > plugins = Lists . newArrayList ( new ManagePlugin ( "Status" , "//status" , StatusPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . StatusPluginRegion ( "soy.page.statusPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Instances" , "//instances" , InstancesPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . InstancesPluginRegion ( "soy.page.instancesPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Config" , "//Config" , ConfigPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . ConfigPluginRegion ( "soy.page.configPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost , upenaConfigStore ) ) , new ManagePlugin ( "Clusters" , "//clusters" , ClustersPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . ClustersPluginRegion ( "soy.page.clustersPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Hosts" , "//hosts" , HostsPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . HostsPluginRegion ( "soy.page.hostsPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Services" , "//services" , ServicesPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . ServicesPluginRegion ( "soy.page.servicesPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Releases" , "//releases" , ReleasesPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . ReleasesPluginRegion ( "soy.page.releasesPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) , new ManagePlugin ( "Upena<seq2seq4repair_space>Ring" , "//ring" , UpenaRingPluginEndpoints . class , new com . jivesoftware . os . upena . deployable . region . UpenaRingPluginRegion ( "soy.page.upenaRingPluginRegion" , renderer , amzaService , upenaStore , upenaService , ubaService , ringHost ) ) ) ;