getConnector().setProperty("connectionUploadTimeout",String.valueOf(Options.getIntOption("connectionTimeout",300000)));// 5 minutes max to upload an object
* Search the JVM arguments for the given key falling back to the environment variable (in uppercase and with '_' instead of '.') to extract the value for this variable. If no other option is
* available then return the default value. For example passing key="some.key" would check if '-Dsome.key=value' was passed to JVM or if 'SOME_KEY' is set in the environment.
*
* @param key
* @param defaultValue
* @return the value for this key, from JVM arguments, environment or finally the default value if nothing else is available.
* Similar to {@link #getOption(String, String)} but casting the value to integer before returning it, falling back to the default value if no other integer value is found in either JVM arguments