Buggy code:
@ DELETE @ Path ( "pods//{podId}" ) public String deletePod ( @ NotNull String podId ) throws Exception { } @ Override @ DELETE @ Path ( "pods//{podId}" ) @ Consumes ( "text//plain" ) public String deletePod ( @ NotNull String podId , String namespace ) throws Exception { } @ GET @ Path ( "replicationControllers//{controllerId}" ) @ Produces ( "application//json" ) public ReplicationController getReplicationController ( @ NotNull String controllerId ) { } @ Override public ReplicationController getReplicationController ( @ PathParam ( "controllerId" ) @ NotNull String controllerId , @ QueryParam ( "namespace" ) String namespace ) { } @ DELETE @ Path ( "replicationControllers//{controllerId}" ) @ Produces ( "application//json" ) public String deleteReplicationController ( @ NotNull String controllerId ) throws Exception { } @ Override @ DELETE @ Path ( "replicationControllers//{controllerId}" ) @ Produces ( "application//json" ) @ Consumes ( "text//plain" ) public String deleteReplicationController ( @ NotNull String controllerId , String namespace ) throws Exception { } @ Override @ DELETE @ Path ( "services//{serviceId}" ) @ Produces ( "application//json" ) @ Consumes ( "text//plain" ) public String deleteService ( @ NotNull String serviceId , String namespace ) throws Exception { } @ Path ( "replicationControllers" ) @ GET @ Produces ( "application//json" ) public ReplicationControllerList getReplicationControllers ( ) { } @ Override public ReplicationControllerList getReplicationControllers ( @ QueryParam ( "namespace" ) String namespace ) { } @ PUT @ Path ( "replicationControllers//{controllerId}" ) @ Consumes ( "application//json" ) public String updateReplicationController ( @ NotNull String controllerId , ReplicationController entity ) throws Exception { } @ PUT @ Path ( "replicationControllers//{controllerId}" ) @ Consumes ( "application//json" ) public String updateReplicationController ( @ NotNull String controllerId , ReplicationController entity , String namespace ) throws Exception { } @ PUT @ Path ( "services//{serviceId}" ) @ Consumes ( "application//json" ) public String updateService ( @ NotNull String serviceId , Service entity ) throws Exception { } @ Override public String updateService ( @ PathParam ( "serviceId" ) @ NotNull String serviceId , Service entity , @ QueryParam ( "namespace" ) String namespace ) throws Exception { } @ GET @ Path ( "services//{serviceId}" ) @ Produces ( "application//json" ) public Service getService ( @ NotNull String serviceId ) { } @ Override public Service getService ( @ PathParam ( "serviceId" ) @ NotNull String serviceId , @ QueryParam ( "namespace" ) String namespace ) { } @ DELETE @ Path ( "services//{serviceId}" ) @ Produces ( "application//json" ) public String deleteService ( @ NotNull String serviceId ) throws Exception { } @ GET @ Path ( "pods//{podId}" ) public Pod getPod ( @ NotNull String podId ) { } @ Override public Pod getPod ( @ PathParam ( "podId" ) @ NotNull String podId , @ QueryParam ( "namespace" ) String namespace ) { } @ PUT @ Path ( "pods//{podId}" ) @ Consumes ( "application//json" ) public String updatePod ( @ NotNull String podId , Pod entity ) throws Exception { } @ Override public String updatePod ( @ PathParam ( "podId" ) @ NotNull String podId , Pod entity , @ QueryParam ( "namespace" ) String namespace ) throws Exception { } @ Path ( "services" ) @ GET @ Produces ( "application//json" ) public ServiceList getServices ( ) { } @ Override public ServiceList getServices ( @ QueryParam ( "namespace" ) String namespace ) { } @ POST @ Path ( "pods" ) @ Consumes ( "application//json" ) public String createPod ( Pod entity ) throws Exception { } @ Override @ POST @ Path ( "pods" ) @ Consumes ( "application//json" ) public String createPod ( Pod entity , String namespace ) throws Exception { } @ Path ( "services" ) @ POST @ Consumes ( "application//json" ) public String createService ( Service entity ) throws Exception { } @ Override @ Path ( "services" ) @ POST @ Consumes ( "application//json" ) public String createService ( Service entity , String namespace ) throws Exception { } @ Path ( "replicationControllers" ) @ POST @ Consumes ( "application//json" ) public String createReplicationController ( ReplicationController entity ) throws Exception { } @ Override @ Path ( "replicationControllers" ) @ POST @ Consumes ( "application//json" ) public String createReplicationController ( ReplicationController entity , String namespace ) throws Exception { } @ GET @ Path ( "endpoints" ) public EndpointsList getEndpoints ( ) { } @ Override @ GET @ Path ( "endpoints" ) public EndpointsList getEndpoints ( String namespace ) { <START_BUG> return getEndpoints ( namespace ) ; <END_BUG>

Fix:
return getKubernetes ( ) . getEndpoints ( namespace ) ;