You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ah...@apache.org on 2013/12/12 22:01:26 UTC

[26/48] All Checkstyle problems corrected

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/be5e5cc6/deps/XenServerJava/src/com/xensource/xenapi/VMAppliance.java
----------------------------------------------------------------------
diff --git a/deps/XenServerJava/src/com/xensource/xenapi/VMAppliance.java b/deps/XenServerJava/src/com/xensource/xenapi/VMAppliance.java
index a040263..b7e7e36 100644
--- a/deps/XenServerJava/src/com/xensource/xenapi/VMAppliance.java
+++ b/deps/XenServerJava/src/com/xensource/xenapi/VMAppliance.java
@@ -28,7 +28,6 @@
  * OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-
 package com.xensource.xenapi;
 
 import com.xensource.xenapi.Types.BadServerResponse;
@@ -61,14 +60,14 @@ public class VMAppliance extends XenAPIObject {
      * For internal use only.
      */
     VMAppliance(String ref) {
-       this.ref = ref;
+        this.ref = ref;
     }
 
     /**
      * @return The XenAPI reference (OpaqueRef) to this object.
      */
     public String toWireString() {
-       return this.ref;
+        return this.ref;
     }
 
     /**
@@ -79,7 +78,7 @@ public class VMAppliance extends XenAPIObject {
     {
         if (obj != null && obj instanceof VMAppliance)
         {
-            VMAppliance other = (VMAppliance) obj;
+            VMAppliance other = (VMAppliance)obj;
             return other.ref.equals(this.ref);
         } else
         {
@@ -112,8 +111,8 @@ public class VMAppliance extends XenAPIObject {
         /**
          * Convert a VM_appliance.Record to a Map
          */
-        public Map<String,Object> toMap() {
-            Map<String,Object> map = new HashMap<String,Object>();
+        public Map<String, Object> toMap() {
+            Map<String, Object> map = new HashMap<String, Object>();
             map.put("uuid", this.uuid == null ? "" : this.uuid);
             map.put("name_label", this.nameLabel == null ? "" : this.nameLabel);
             map.put("name_description", this.nameDescription == null ? "" : this.nameDescription);
@@ -155,15 +154,15 @@ public class VMAppliance extends XenAPIObject {
      * @return all fields from the object
      */
     public VMAppliance.Record getRecord(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_record";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toVMApplianceRecord(result);
+        return Types.toVMApplianceRecord(result);
     }
 
     /**
@@ -173,15 +172,15 @@ public class VMAppliance extends XenAPIObject {
      * @return reference to the object
      */
     public static VMAppliance getByUuid(Connection c, String uuid) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_by_uuid";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(uuid)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toVMAppliance(result);
+        return Types.toVMAppliance(result);
     }
 
     /**
@@ -191,9 +190,9 @@ public class VMAppliance extends XenAPIObject {
      * @return Task
      */
     public static Task createAsync(Connection c, VMAppliance.Record record) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "Async.VM_appliance.create";
         String session = c.getSessionReference();
         Map<String, Object> record_map = record.toMap();
@@ -210,16 +209,16 @@ public class VMAppliance extends XenAPIObject {
      * @return reference to the newly created object
      */
     public static VMAppliance create(Connection c, VMAppliance.Record record) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.create";
         String session = c.getSessionReference();
         Map<String, Object> record_map = record.toMap();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(record_map)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toVMAppliance(result);
+        return Types.toVMAppliance(result);
     }
 
     /**
@@ -228,9 +227,9 @@ public class VMAppliance extends XenAPIObject {
      * @return Task
      */
     public Task destroyAsync(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "Async.VM_appliance.destroy";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
@@ -244,9 +243,9 @@ public class VMAppliance extends XenAPIObject {
      *
      */
     public void destroy(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.destroy";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
@@ -261,15 +260,15 @@ public class VMAppliance extends XenAPIObject {
      * @return references to objects with matching names
      */
     public static Set<VMAppliance> getByNameLabel(Connection c, String label) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_by_name_label";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(label)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toSetOfVMAppliance(result);
+        return Types.toSetOfVMAppliance(result);
     }
 
     /**
@@ -278,15 +277,15 @@ public class VMAppliance extends XenAPIObject {
      * @return value of the field
      */
     public String getUuid(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_uuid";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toString(result);
+        return Types.toString(result);
     }
 
     /**
@@ -295,15 +294,15 @@ public class VMAppliance extends XenAPIObject {
      * @return value of the field
      */
     public String getNameLabel(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_name_label";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toString(result);
+        return Types.toString(result);
     }
 
     /**
@@ -312,15 +311,15 @@ public class VMAppliance extends XenAPIObject {
      * @return value of the field
      */
     public String getNameDescription(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_name_description";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toString(result);
+        return Types.toString(result);
     }
 
     /**
@@ -329,15 +328,15 @@ public class VMAppliance extends XenAPIObject {
      * @return value of the field
      */
     public Set<Types.VmApplianceOperation> getAllowedOperations(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_allowed_operations";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toSetOfVmApplianceOperation(result);
+        return Types.toSetOfVmApplianceOperation(result);
     }
 
     /**
@@ -346,15 +345,15 @@ public class VMAppliance extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, Types.VmApplianceOperation> getCurrentOperations(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_current_operations";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringVmApplianceOperation(result);
+        return Types.toMapOfStringVmApplianceOperation(result);
     }
 
     /**
@@ -363,15 +362,15 @@ public class VMAppliance extends XenAPIObject {
      * @return value of the field
      */
     public Set<VM> getVMs(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_VMs";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toSetOfVM(result);
+        return Types.toSetOfVM(result);
     }
 
     /**
@@ -380,9 +379,9 @@ public class VMAppliance extends XenAPIObject {
      * @param label New value to set
      */
     public void setNameLabel(Connection c, String label) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.set_name_label";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(label)};
@@ -396,9 +395,9 @@ public class VMAppliance extends XenAPIObject {
      * @param description New value to set
      */
     public void setNameDescription(Connection c, String description) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.set_name_description";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(description)};
@@ -413,10 +412,10 @@ public class VMAppliance extends XenAPIObject {
      * @return Task
      */
     public Task startAsync(Connection c, Boolean paused) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.OperationPartiallyFailed {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.OperationPartiallyFailed {
         String method_call = "Async.VM_appliance.start";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(paused)};
@@ -431,10 +430,10 @@ public class VMAppliance extends XenAPIObject {
      * @param paused Instantiate all VMs belonging to this appliance in paused state if set to true.
      */
     public void start(Connection c, Boolean paused) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.OperationPartiallyFailed {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.OperationPartiallyFailed {
         String method_call = "VM_appliance.start";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(paused)};
@@ -448,10 +447,10 @@ public class VMAppliance extends XenAPIObject {
      * @return Task
      */
     public Task cleanShutdownAsync(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.OperationPartiallyFailed {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.OperationPartiallyFailed {
         String method_call = "Async.VM_appliance.clean_shutdown";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
@@ -465,10 +464,10 @@ public class VMAppliance extends XenAPIObject {
      *
      */
     public void cleanShutdown(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.OperationPartiallyFailed {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.OperationPartiallyFailed {
         String method_call = "VM_appliance.clean_shutdown";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
@@ -482,10 +481,10 @@ public class VMAppliance extends XenAPIObject {
      * @return Task
      */
     public Task hardShutdownAsync(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.OperationPartiallyFailed {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.OperationPartiallyFailed {
         String method_call = "Async.VM_appliance.hard_shutdown";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
@@ -499,10 +498,10 @@ public class VMAppliance extends XenAPIObject {
      *
      */
     public void hardShutdown(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.OperationPartiallyFailed {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.OperationPartiallyFailed {
         String method_call = "VM_appliance.hard_shutdown";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
@@ -516,10 +515,10 @@ public class VMAppliance extends XenAPIObject {
      * @return Task
      */
     public Task shutdownAsync(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.OperationPartiallyFailed {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.OperationPartiallyFailed {
         String method_call = "Async.VM_appliance.shutdown";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
@@ -533,10 +532,10 @@ public class VMAppliance extends XenAPIObject {
      *
      */
     public void shutdown(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.OperationPartiallyFailed {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.OperationPartiallyFailed {
         String method_call = "VM_appliance.shutdown";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
@@ -551,10 +550,10 @@ public class VMAppliance extends XenAPIObject {
      * @return Task
      */
     public Task assertCanBeRecoveredAsync(Connection c, Session sessionTo) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.VmRequiresSr {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.VmRequiresSr {
         String method_call = "Async.VM_appliance.assert_can_be_recovered";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(sessionTo)};
@@ -569,10 +568,10 @@ public class VMAppliance extends XenAPIObject {
      * @param sessionTo The session to which the VM appliance is to be recovered.
      */
     public void assertCanBeRecovered(Connection c, Session sessionTo) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.VmRequiresSr {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.VmRequiresSr {
         String method_call = "VM_appliance.assert_can_be_recovered";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(sessionTo)};
@@ -588,10 +587,10 @@ public class VMAppliance extends XenAPIObject {
      * @return Task
      */
     public Task recoverAsync(Connection c, Session sessionTo, Boolean force) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.VmRequiresSr {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.VmRequiresSr {
         String method_call = "Async.VM_appliance.recover";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(sessionTo), Marshalling.toXMLRPC(force)};
@@ -607,10 +606,10 @@ public class VMAppliance extends XenAPIObject {
      * @param force Whether the VMs should replace newer versions of themselves.
      */
     public void recover(Connection c, Session sessionTo, Boolean force) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException,
-       Types.VmRequiresSr {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException,
+        Types.VmRequiresSr {
         String method_call = "VM_appliance.recover";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(sessionTo), Marshalling.toXMLRPC(force)};
@@ -624,15 +623,15 @@ public class VMAppliance extends XenAPIObject {
      * @return references to all objects
      */
     public static Set<VMAppliance> getAll(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_all";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toSetOfVMAppliance(result);
+        return Types.toSetOfVMAppliance(result);
     }
 
     /**
@@ -641,15 +640,15 @@ public class VMAppliance extends XenAPIObject {
      * @return records of all objects
      */
     public static Map<VMAppliance, VMAppliance.Record> getAllRecords(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_appliance.get_all_records";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfVMApplianceVMApplianceRecord(result);
+        return Types.toMapOfVMApplianceVMApplianceRecord(result);
     }
 
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/be5e5cc6/deps/XenServerJava/src/com/xensource/xenapi/VMGuestMetrics.java
----------------------------------------------------------------------
diff --git a/deps/XenServerJava/src/com/xensource/xenapi/VMGuestMetrics.java b/deps/XenServerJava/src/com/xensource/xenapi/VMGuestMetrics.java
index 9a6caf0..08d88e3 100644
--- a/deps/XenServerJava/src/com/xensource/xenapi/VMGuestMetrics.java
+++ b/deps/XenServerJava/src/com/xensource/xenapi/VMGuestMetrics.java
@@ -28,7 +28,6 @@
  * OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-
 package com.xensource.xenapi;
 
 import com.xensource.xenapi.Types.BadServerResponse;
@@ -61,14 +60,14 @@ public class VMGuestMetrics extends XenAPIObject {
      * For internal use only.
      */
     VMGuestMetrics(String ref) {
-       this.ref = ref;
+        this.ref = ref;
     }
 
     /**
      * @return The XenAPI reference (OpaqueRef) to this object.
      */
     public String toWireString() {
-       return this.ref;
+        return this.ref;
     }
 
     /**
@@ -79,7 +78,7 @@ public class VMGuestMetrics extends XenAPIObject {
     {
         if (obj != null && obj instanceof VMGuestMetrics)
         {
-            VMGuestMetrics other = (VMGuestMetrics) obj;
+            VMGuestMetrics other = (VMGuestMetrics)obj;
             return other.ref.equals(this.ref);
         } else
         {
@@ -117,8 +116,8 @@ public class VMGuestMetrics extends XenAPIObject {
         /**
          * Convert a VM_guest_metrics.Record to a Map
          */
-        public Map<String,Object> toMap() {
-            Map<String,Object> map = new HashMap<String,Object>();
+        public Map<String, Object> toMap() {
+            Map<String, Object> map = new HashMap<String, Object>();
             map.put("uuid", this.uuid == null ? "" : this.uuid);
             map.put("os_version", this.osVersion == null ? new HashMap<String, String>() : this.osVersion);
             map.put("PV_drivers_version", this.PVDriversVersion == null ? new HashMap<String, String>() : this.PVDriversVersion);
@@ -185,15 +184,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return all fields from the object
      */
     public VMGuestMetrics.Record getRecord(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_record";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toVMGuestMetricsRecord(result);
+        return Types.toVMGuestMetricsRecord(result);
     }
 
     /**
@@ -203,15 +202,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return reference to the object
      */
     public static VMGuestMetrics getByUuid(Connection c, String uuid) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_by_uuid";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(uuid)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toVMGuestMetrics(result);
+        return Types.toVMGuestMetrics(result);
     }
 
     /**
@@ -220,15 +219,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public String getUuid(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_uuid";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toString(result);
+        return Types.toString(result);
     }
 
     /**
@@ -237,15 +236,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getOsVersion(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_os_version";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -254,15 +253,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getPVDriversVersion(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_PV_drivers_version";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -271,15 +270,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Boolean getPVDriversUpToDate(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_PV_drivers_up_to_date";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toBoolean(result);
+        return Types.toBoolean(result);
     }
 
     /**
@@ -288,15 +287,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getMemory(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_memory";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -305,15 +304,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getDisks(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_disks";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -322,15 +321,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getNetworks(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_networks";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -339,15 +338,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getOther(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_other";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -356,15 +355,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Date getLastUpdated(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_last_updated";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toDate(result);
+        return Types.toDate(result);
     }
 
     /**
@@ -373,15 +372,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getOtherConfig(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_other_config";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -390,15 +389,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Boolean getLive(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_live";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toBoolean(result);
+        return Types.toBoolean(result);
     }
 
     /**
@@ -407,9 +406,9 @@ public class VMGuestMetrics extends XenAPIObject {
      * @param otherConfig New value to set
      */
     public void setOtherConfig(Connection c, Map<String, String> otherConfig) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.set_other_config";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(otherConfig)};
@@ -424,9 +423,9 @@ public class VMGuestMetrics extends XenAPIObject {
      * @param value Value to add
      */
     public void addToOtherConfig(Connection c, String key, String value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.add_to_other_config";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)};
@@ -440,9 +439,9 @@ public class VMGuestMetrics extends XenAPIObject {
      * @param key Key to remove
      */
     public void removeFromOtherConfig(Connection c, String key) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.remove_from_other_config";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key)};
@@ -456,15 +455,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return references to all objects
      */
     public static Set<VMGuestMetrics> getAll(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_all";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toSetOfVMGuestMetrics(result);
+        return Types.toSetOfVMGuestMetrics(result);
     }
 
     /**
@@ -473,15 +472,15 @@ public class VMGuestMetrics extends XenAPIObject {
      * @return records of all objects
      */
     public static Map<VMGuestMetrics, VMGuestMetrics.Record> getAllRecords(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_guest_metrics.get_all_records";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfVMGuestMetricsVMGuestMetricsRecord(result);
+        return Types.toMapOfVMGuestMetricsVMGuestMetricsRecord(result);
     }
 
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/be5e5cc6/deps/XenServerJava/src/com/xensource/xenapi/VMMetrics.java
----------------------------------------------------------------------
diff --git a/deps/XenServerJava/src/com/xensource/xenapi/VMMetrics.java b/deps/XenServerJava/src/com/xensource/xenapi/VMMetrics.java
index 8544e42..5f9a7a4 100644
--- a/deps/XenServerJava/src/com/xensource/xenapi/VMMetrics.java
+++ b/deps/XenServerJava/src/com/xensource/xenapi/VMMetrics.java
@@ -28,7 +28,6 @@
  * OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-
 package com.xensource.xenapi;
 
 import com.xensource.xenapi.Types.BadServerResponse;
@@ -61,14 +60,14 @@ public class VMMetrics extends XenAPIObject {
      * For internal use only.
      */
     VMMetrics(String ref) {
-       this.ref = ref;
+        this.ref = ref;
     }
 
     /**
      * @return The XenAPI reference (OpaqueRef) to this object.
      */
     public String toWireString() {
-       return this.ref;
+        return this.ref;
     }
 
     /**
@@ -79,7 +78,7 @@ public class VMMetrics extends XenAPIObject {
     {
         if (obj != null && obj instanceof VMMetrics)
         {
-            VMMetrics other = (VMMetrics) obj;
+            VMMetrics other = (VMMetrics)obj;
             return other.ref.equals(this.ref);
         } else
         {
@@ -118,8 +117,8 @@ public class VMMetrics extends XenAPIObject {
         /**
          * Convert a VM_metrics.Record to a Map
          */
-        public Map<String,Object> toMap() {
-            Map<String,Object> map = new HashMap<String,Object>();
+        public Map<String, Object> toMap() {
+            Map<String, Object> map = new HashMap<String, Object>();
             map.put("uuid", this.uuid == null ? "" : this.uuid);
             map.put("memory_actual", this.memoryActual == null ? 0 : this.memoryActual);
             map.put("VCPUs_number", this.VCPUsNumber == null ? 0 : this.VCPUsNumber);
@@ -191,15 +190,15 @@ public class VMMetrics extends XenAPIObject {
      * @return all fields from the object
      */
     public VMMetrics.Record getRecord(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_record";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toVMMetricsRecord(result);
+        return Types.toVMMetricsRecord(result);
     }
 
     /**
@@ -209,15 +208,15 @@ public class VMMetrics extends XenAPIObject {
      * @return reference to the object
      */
     public static VMMetrics getByUuid(Connection c, String uuid) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_by_uuid";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(uuid)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toVMMetrics(result);
+        return Types.toVMMetrics(result);
     }
 
     /**
@@ -226,15 +225,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public String getUuid(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_uuid";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toString(result);
+        return Types.toString(result);
     }
 
     /**
@@ -243,15 +242,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Long getMemoryActual(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_memory_actual";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toLong(result);
+        return Types.toLong(result);
     }
 
     /**
@@ -260,15 +259,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Long getVCPUsNumber(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_VCPUs_number";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toLong(result);
+        return Types.toLong(result);
     }
 
     /**
@@ -277,15 +276,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<Long, Double> getVCPUsUtilisation(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_VCPUs_utilisation";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfLongDouble(result);
+        return Types.toMapOfLongDouble(result);
     }
 
     /**
@@ -294,15 +293,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<Long, Long> getVCPUsCPU(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_VCPUs_CPU";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfLongLong(result);
+        return Types.toMapOfLongLong(result);
     }
 
     /**
@@ -311,15 +310,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getVCPUsParams(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_VCPUs_params";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -328,15 +327,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<Long, Set<String>> getVCPUsFlags(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_VCPUs_flags";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfLongSetOfString(result);
+        return Types.toMapOfLongSetOfString(result);
     }
 
     /**
@@ -345,15 +344,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Set<String> getState(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_state";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toSetOfString(result);
+        return Types.toSetOfString(result);
     }
 
     /**
@@ -362,15 +361,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Date getStartTime(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_start_time";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toDate(result);
+        return Types.toDate(result);
     }
 
     /**
@@ -379,15 +378,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Date getInstallTime(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_install_time";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toDate(result);
+        return Types.toDate(result);
     }
 
     /**
@@ -396,15 +395,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Date getLastUpdated(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_last_updated";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toDate(result);
+        return Types.toDate(result);
     }
 
     /**
@@ -413,15 +412,15 @@ public class VMMetrics extends XenAPIObject {
      * @return value of the field
      */
     public Map<String, String> getOtherConfig(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_other_config";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
+        return Types.toMapOfStringString(result);
     }
 
     /**
@@ -430,9 +429,9 @@ public class VMMetrics extends XenAPIObject {
      * @param otherConfig New value to set
      */
     public void setOtherConfig(Connection c, Map<String, String> otherConfig) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.set_other_config";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(otherConfig)};
@@ -447,9 +446,9 @@ public class VMMetrics extends XenAPIObject {
      * @param value Value to add
      */
     public void addToOtherConfig(Connection c, String key, String value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.add_to_other_config";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)};
@@ -463,9 +462,9 @@ public class VMMetrics extends XenAPIObject {
      * @param key Key to remove
      */
     public void removeFromOtherConfig(Connection c, String key) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.remove_from_other_config";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key)};
@@ -479,15 +478,15 @@ public class VMMetrics extends XenAPIObject {
      * @return references to all objects
      */
     public static Set<VMMetrics> getAll(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_all";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toSetOfVMMetrics(result);
+        return Types.toSetOfVMMetrics(result);
     }
 
     /**
@@ -496,15 +495,15 @@ public class VMMetrics extends XenAPIObject {
      * @return records of all objects
      */
     public static Map<VMMetrics, VMMetrics.Record> getAllRecords(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
+        BadServerResponse,
+        XenAPIException,
+        XmlRpcException {
         String method_call = "VM_metrics.get_all_records";
         String session = c.getSessionReference();
         Object[] method_params = {Marshalling.toXMLRPC(session)};
         Map response = c.dispatch(method_call, method_params);
         Object result = response.get("Value");
-            return Types.toMapOfVMMetricsVMMetricsRecord(result);
+        return Types.toMapOfVMMetricsVMMetricsRecord(result);
     }
 
 }
\ No newline at end of file