// Path: common/src/main/java/org/apache/hms/common/entity/RestSource.java
// @XmlRootElement
// @XmlAccessorType(XmlAccessType.FIELD) 
// @XmlType(name="", propOrder = {})
// public abstract class RestSource {
// 
// }
// 
// Path: common/src/main/java/org/apache/hms/common/entity/Status.java
// @XmlRootElement
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "", propOrder = {})
// public enum Status {
//   UNQUEUED, QUEUED, STARTED, SUCCEEDED, FAILED, INSTALLED, STOPPED;
// 
//   public static class StatusAdapter extends XmlAdapter<String, Status> {
// 
//     @Override
//     public String marshal(Status obj) throws Exception {
//       return obj.toString();
//     }
// 
//     @Override
//     public Status unmarshal(String str) throws Exception {
//       for (Status j : Status.class.getEnumConstants()) {
//         if (j.toString().equals(str)) {
//           return j;
//         }
//       }
//       throw new Exception("Can't convert " + str + " to "
//           + Status.class.getName());
//     }
// 
//   }
// }


import org.apache.hms.common.entity.Status.StatusAdapter;
import java.util.Set;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.hms.common.entity.RestSource;
import org.apache.hms.common.entity.Status;
      sb.append("(");
      sb.append(type);
      sb.append(":");
      sb.append(name);
      sb.append(":");
      sb.append(status);
      sb.append(")");
      return sb.toString();
    }
  }
  
  /**
   * Type of state that is recorded per node.
   */
  @XmlRootElement
  public enum StateType {
    PACKAGE, DAEMON;
  }

  public static class StateTypeAdapter extends XmlAdapter<String, StateType> {

    @Override
    public String marshal(StateType obj) throws Exception {
      return obj.toString();
    }

    @Override
    public StateType unmarshal(String str) throws Exception {
      for (StateType j : StateType.class.getEnumConstants()) {
        if (j.toString().equals(str)) {
// Path: common/src/main/java/org/apache/hms/common/entity/RestSource.java
// @XmlRootElement
// @XmlAccessorType(XmlAccessType.FIELD) 
// @XmlType(name="", propOrder = {})
// public abstract class RestSource {
// 
// }
// 
// Path: common/src/main/java/org/apache/hms/common/entity/Status.java
// @XmlRootElement
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "", propOrder = {})
// public enum Status {
//   UNQUEUED, QUEUED, STARTED, SUCCEEDED, FAILED, INSTALLED, STOPPED;
// 
//   public static class StatusAdapter extends XmlAdapter<String, Status> {
// 
//     @Override
//     public String marshal(Status obj) throws Exception {
//       return obj.toString();
//     }
// 
//     @Override
//     public Status unmarshal(String str) throws Exception {
//       for (Status j : Status.class.getEnumConstants()) {
//         if (j.toString().equals(str)) {
//           return j;
//         }
//       }
//       throw new Exception("Can't convert " + str + " to "
//           + Status.class.getName());
//     }
// 
//   }
// }


// Path: common/src/main/java/org/apache/hms/common/entity/cluster/MachineState.java
import org.apache.hms.common.entity.Status.StatusAdapter;
import java.util.Set;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.hms.common.entity.RestSource;
import org.apache.hms.common.entity.Status;

      sb.append("(");
      sb.append(type);
      sb.append(":");
      sb.append(name);
      sb.append(":");
      sb.append(status);
      sb.append(")");
      return sb.toString();
    }
  }
  
  /**
   * Type of state that is recorded per node.
   */
  @XmlRootElement
  public enum StateType {
    PACKAGE, DAEMON;
  }

  public static class StateTypeAdapter extends XmlAdapter<String, StateType> {

    @Override
    public String marshal(StateType obj) throws Exception {
      return obj.toString();
    }

    @Override
    public StateType unmarshal(String str) throws Exception {
      for (StateType j : StateType.class.getEnumConstants()) {
        if (j.toString().equals(str)) {
          return j;