[JBIDE-15808] added "NEW" gear state and corrected (exception-) safe
#valueOf
Merge pull request #95 from adietish/JBIDE-15808

Merged by openshift-bot
Resolves issue #4

 1)Added getEnvironmentVariablesList(), and getEnvironmentVariablesMap()
    to IApplication interface and ApplicationResource.

 2)Refactored references to getEnvironmentVariables() to
    getEnvironmentVariablesMap().

 3)Refactored environmentVariableByName to environmentVariablesMap.

 4)Refactored getEnvironmentVariables():Map<String,IEnvironmentVariable>
    to return List<IEnvironmentVariable>.

 5)Refactored reference to getEnvironmentVariables(), to reference
    getEnvironmentVariablesMap() in ApplicationTestUtils

 6)Refactored reference to getEnvironmentVariables(), to reference
    getEnvironmentVariablesMap() in ApplicationResourceTest

 7)Refactored reference to getEnvironmentVariables(), to reference
    getEnvironmentVariablesMap() in ApplicationResourceIntegrationTest
 
 8)Refactored ApplicationResource.environmentVariablesByName to 
	ApplicationResource.environmentVariablesMap
Resolves #5

1) Refactored environment variable test that reference "List" to use
List<IEnvironmentVariable>.

2) Added environment variable tests that test
Map<String,IEnvironmentVariable> to reference "Map" in their name.
Resolves #7
1) Refactored tests that reference list of variables to reference Map
2) Added tests for List<IEnvironmentVariable> operations
Updated comments in IApplication, ApplicationResource, and
ApplicationResourceIntegrationTest. Resolves #8
Updated IApplication interface, and its implimentation,
ApplicationResource to provide the pubulic method:
getEnvironmentVariableList():List<IEnvironmentVariable>