private static int expectInteger ( Object value ) throws SocketException {
        int v;
        try {
            v = (Integer) value;
        }
        catch ( ClassCastException e ) {
            throw new AFUNIXSocketException("Unsupport value: " + value, e);
        }
        catch ( NullPointerException e ) {
            throw new AFUNIXSocketException("Value must not be null", e);
        }
        return v;
    }