public static VM getVM ( Model mo , int vmID ) throws JSONConverterException { VM vm = new VM ( vmID ) ; if ( ! mo . contains ( vm ) ) { throw new JSONConverterException ( "Undeclared vm '" + vmID + "'" ) ; } return vm ; }
Get a VM from its identifier . The VM is already a part of the model .