Buggy code:
private . API_CONTEXT ) + "//networkPartitions//{id}" ; private static final String ENDPOINT_REMOVE_AUTOSCALINGPOLICY = ( RestCommandLineService . API_CONTEXT ) + "//autoscalingPolicies//{policyId}" ; private static final String ENDPOINT_REMOVE_DEPLOYMENT_POLICY = ( RestCommandLineService . API_CONTEXT ) + "//deploymentPolicies//{policyId}" ; private static final String ENDPOINT_LIST_AUTOSCALING_POLICIES = ( RestCommandLineService . API_CONTEXT ) + "//autoscalingPolicies" ; private static final String ENDPOINT_LIST_DEPLOYMENT_POLICIES = ( RestCommandLineService . API_CONTEXT ) + "//deploymentPolicies" ; private static final String ENDPOINT_LIST_CARTRIDGES = ( RestCommandLineService . API_CONTEXT ) + "//cartridges" ; private static final String ENDPOINT_LIST_CARTRIDGE_GROUPS = ( RestCommandLineService . API_CONTEXT ) + "//cartridgeGroups" ; private static final String ENDPOINT_LIST_TENANTS = ( RestCommandLineService . API_CONTEXT ) + "//tenants" ; private static final String ENDPOINT_LIST_USERS = ( RestCommandLineService . API_CONTEXT ) + "//users" ; private static final String ENDPOINT_LIST_KUBERNETES_CLUSTERS = ( RestCommandLineService . API_CONTEXT ) + "//kubernetesClusters" ; private static final String ENDPOINT_LIST_KUBERNETES_HOSTS = ( RestCommandLineService . API_CONTEXT ) + "//kubernetesClusters//{kubernetesClusterId}//hosts" ; private static final String ENDPOINT_LIST_SERVICE_GROUP = ( RestCommandLineService . API_CONTEXT ) + "//cartridgeGroups//{groupDefinitionName}" ; private static final String ENDPOINT_LIST_APPLICATION = ( RestCommandLineService . API_CONTEXT ) + "//applications" ; private static final String ENDPOINT_LIST_NETWORK_PARTITIONS = ( RestCommandLineService . API_CONTEXT ) + "//networkPartitions" ; private static final String ENDPOINT_LIST_CARTRIDGES_BY_FILTER = ( RestCommandLineService . API_CONTEXT ) + "//cartridges//filter//{filter}" ; private static final String ENDPOINT_LIST_TENANTS_BY_PARTIAL_DOMAIN = ( RestCommandLineService . API_CONTEXT ) + "//tenants//search//{tenantDomain}" ; private static final String ENDPOINT_DOMAIN_MAPPINGS = ( RestCommandLineService . API_CONTEXT ) + "//applications//{applicationId}//domainMappings" ; private static final String ENDPOINT_GET_APPLICATION = ( RestCommandLineService . API_CONTEXT ) + "//applications//{appId}" ; private static final String ENDPOINT_GET_AUTOSCALING_POLICY = ( RestCommandLineService . API_CONTEXT ) + "//autoscalingPolicies//{id}" ; private static final String ENDPOINT_GET_DEPLOYMENT_POLICY = ( RestCommandLineService . API_CONTEXT ) + "//deploymentPolicies//{deploymentPolicyId}" ; private static final String ENDPOINT_GET_CARTRIDGE = ( RestCommandLineService . API_CONTEXT ) + "//cartridges//{cartridgeType}" ; private static final String ENDPOINT_GET_CARTRIDGE_OF_TENANT = ( RestCommandLineService . API_CONTEXT ) + "//subscriptions//{id}//cartridges" ; private static final String ENDPOINT_GET_KUBERNETES_GROUP = ( RestCommandLineService . API_CONTEXT ) + "//kubernetesCluster//{kubernetesClusterId}" ; private static final String ENDPOINT_GET_KUBERNETES_MASTER = ( RestCommandLineService . API_CONTEXT ) + "//kubernetesClusters//{kubernetesClusterId}//master" ; private static final String ENDPOINT_GET_KUBERNETES_HOST_CLUSTER = ( RestCommandLineService . API_CONTEXT ) + "//kubernetesClusters//{kubernetesClusterId}" ; private static final String ENDPOINT_GET_NETWORK_PARTITION = ( RestCommandLineService . API_CONTEXT ) + "//networkPartitions//{networkPartitionId}" ; private static final String ENDPOINT_GET_APPLICATION_RUNTIME = ( RestCommandLineService . API_CONTEXT ) + "//applications//{applicationId}//runtime" ; private static final String ENDPOINT_UPDATE_KUBERNETES_MASTER = ( RestCommandLineService . API_CONTEXT ) + "//kubernetesClusters//{kubernetesClusterId}//master" ; private static final String ENDPOINT_UPDATE_KUBERNETES_HOST = ( RestCommandLineService . API_CONTEXT ) + "//kubernetesClusters//{kubernetesClusterId}//minion//{minionId}" ; private static final String ENDPOINT_SYNCHRONIZE_ARTIFACTS = ( RestCommandLineService . API_CONTEXT ) + "//repo//synchronize//{subscriptionAlias}" ; private static final String ENDPOINT_ACTIVATE_TENANT = ( RestCommandLineService . API_CONTEXT ) + "//tenants//activate//{tenantDomain}" ; private static final String ENDPOINT_DEACTIVATE_TENANT = ( RestCommandLineService . API_CONTEXT ) + "//tenants//deactivate//{tenantDomain}" ; private static final String ENDPOINT_APPLICATION_SIGNUP = ( RestCommandLineService . API_CONTEXT ) + "//applications//{applicationId}//signup" ; private static final String ENDPOINT_UPDATE_DEPLOYMENT_POLICY = ( RestCommandLineService . API_CONTEXT ) + "//deploymentPolicies" ; private static final String ENDPOINT_UPDATE_AUTOSCALING_POLICY = ( RestCommandLineService . API_CONTEXT ) + "//autoscalingPolicies" ; private static final String ENDPOINT_UPDATE_USER = ( RestCommandLineService . API_CONTEXT ) + "//users" ; private static final String ENDPOINT_UPDATE_TENANT = ( RestCommandLineService . API_CONTEXT ) + "//tenants" ; private static class SingletonHolder { private static final RestCommandLineService INSTANCE = new RestCommandLineService ( ) ; } public static RestCommandLineService getInstance ( ) { } public Gson getGson ( ) { } public boolean login ( String serverURL , String username , String password , boolean validateLogin ) throws Exception { } private void initializeRestClient ( String serverURL , String username , String password ) throws AxisFault { } public void listCartridges ( ) throws CommandException { } public void listCartridgesByFilter ( String filter ) throws CommandException { } public void listCartridgeGroups ( ) throws CommandException { } public void describeCartridge ( final String cartridgeType ) throws CommandException { } private ClusterBean getClusterObjectFromString ( String resultString ) { } public void addTenant ( String admin , String firstName , String lastName , String password , String domain , String email ) throws CommandException { } public void describeTenant ( final String domainName ) throws CommandException { } public void listTenantsByPartialDomain ( String partialDomain ) throws CommandException { } public void updateTenant ( int id , String admin , String firstName , String lastName , String password , String domain , String email ) throws CommandException { } public void addUser ( String userName , String credential , String role , String firstName , String lastName , String email , String profileName ) throws CommandException { } public void updateUser ( String userName , String credential , String role , String firstName , String lastName , String email , String profileName ) throws CommandException { } public void deleteTenant ( String tenantDomain ) throws CommandException { } public void deleteUser ( String userName ) throws CommandException { } public void deactivateTenant ( String tenantDomain ) throws CommandException { } public void activateTenant ( String tenantDomain ) throws CommandException { } public void listTenants ( ) throws CommandException { } public void listAllUsers ( ) throws CommandException { } public void addCartridge ( String cartridgeDefinition ) throws CommandException { } public void updateCartridge ( String cartridgeDefinition ) throws CommandException { } public void undeployCartrigdeDefinition ( String id ) throws CommandException { } public void addAutoscalingPolicy ( String autoScalingPolicy ) throws CommandException { } public void updateAutoscalingPolicy ( String autoScalingPolicy ) throws CommandException { } public void listApplications ( ) throws CommandException { } public void listAutoscalingPolicies ( ) throws CommandException { } public void describeDeploymentPolicy ( String deploymentPolicyId ) throws CommandException { } public void describeAutoScalingPolicy ( String id ) throws CommandException { } public void addKubernetesCluster ( String entityBody ) { } public void listKubernetesClusters ( ) { } public void undeployKubernetesCluster ( String clusterId ) { } public void addKubernetesHost ( String entityBody , String clusterId ) throws CommandException { } public void listKubernetesHosts ( String clusterId ) { try { Type listType = new TypeToken < ArrayList < KubernetesHostBean > > ( ) { } . getType ( ) ; List < KubernetesHostBean > list = ( ( List < KubernetesHostBean > ) ( restClient . listEntity ( RestCommandLineService . ENDPOINT_LIST_KUBERNETES_HOSTS . replace ( "{kubernetesClusterId}" , clusterId ) , listType , "kubernetes<seq2seq4repair_space>host" ) ) ) ; if ( ( list != null ) && ( ( list . size ( ) ) > 0 ) ) { RowMapper < KubernetesHostBean > partitionMapper = new RowMapper < KubernetesHostBean > ( ) { public String [ ] getData ( KubernetesHostBean kubernetesHost ) { <START_BUG> String [ ] data = new String [ 3 ] ; <END_BUG>

Fix:
String [ ] data = new String [ 4 ] ;