using Objects class utility methods and storing common environments in static attributes