public static DHCPOption newOptionAsShorts(byte code, short[] arr) {
    	if (!isOptionAsShorts(code)) {
            throw new IllegalArgumentException("DHCP option type ("+code+") is not shorts");
    	}
    	byte[] buf = null;
    	if (arr != null) {
    		buf = new byte[arr.length * 2];
    		for (int i=0; i<arr.length; i++) {
    			short val = arr[i];
    			buf[i*2] = (byte) ((val & 0xFF00) >>> 8);
            	buf[i*2+1] = (byte) (val & 0XFF);
    		}
    	}
    	return new DHCPOption(code, buf);
    }