/*
* Translates vm info into string format for passing over rmi with Gson
*/
private VMTranslation translateVM(VM vm) throws RemoteException {
try {
GroupAuthz groupAuthz = (GroupAuthz) authzCallout;
String id = vm.getID();
VirtualMachine vmlong = workspaceHome.find(id).getVM();
String node = vmlong.getNode();
String creatorId = vm.getCreator().getIdentity();
String groupId = Integer.toString(groupAuthz.getGroupIDFromCaller(creatorId));
String groupName = groupAuthz.getGroupName(creatorId);
String state = vm.getState().getState();
String startTime = vm.getSchedule().getStartTime().getTime().toString();
String endTime = vm.getSchedule().getDestructionTime().getTime().toString();
ResourceAllocation ra = vm.getResourceAllocation();