Changed available_metadata method to guarantee only 1 calculation.
Renamed metadata vars to _java and _ruby to clarify; public method still named 'metadata', simplified available_metadata.