public void build(String type,String owner) throws AndroidAgentException {
  device=new Device();
  Device.EnrolmentInfo info=new Device.EnrolmentInfo();
  info.setOwner(owner);
  info.setOwnership(type.equals(Constants.OWNERSHIP_BYOD) ? Device.EnrolmentInfo.OwnerShip.BYOD : Device.EnrolmentInfo.OwnerShip.COPE);
  device.setEnrolmentInfo(info);
  getInfo();
}

public void build ( String type , String owner ) throws AndroidAgentException { device = new Device ( ) ; Device . EnrolmentInfo info = new Device . EnrolmentInfo ( ) ; info . setOwner ( owner ) ; info . setOwnership ( type . equals ( Constants . OWNERSHIP_BYOD ) ? Device . EnrolmentInfo . OwnerShip . BYOD : Device . EnrolmentInfo . OwnerShip . COPE ) ; device . setEnrolmentInfo ( info ) ; getInfo ( ) ; }
builds device information payload .
