public static VM requiredVM ( Model mo , JSONObject o , String id ) throws JSONConverterException { checkKeys ( o , id ) ; try { return getVM ( mo , ( Integer ) o . get ( id ) ) ; } catch ( ClassCastException e ) { throw new JSONConverterException ( "Unable to read a VM identifier from string at key '" + id + "'" , e ) ; } }
Read an expected VM .