dealing with Integer and Long types it writeIntegerPropertyIfFound