Added static methods in Compatibility.class for canConnect, getEnergy, and getEnergyMax