if (type != null && !type.equals(NodeType.STORAGE)) break; try{ newState.setCapacity(Double.valueOf(value)); } catch (Exception e) { throw new ParseException("Illegal capacity '" + value + "'. Capacity must be a positive floating point number", 0);
if (type != null && !type.equals(NodeType.STORAGE)) break; try{ newState.setCapacity(Double.valueOf(value)); } catch (Exception e) { throw new ParseException("Illegal capacity '" + value + "'. Capacity must be a positive floating point number", 0);