Removing unnecessary imports and addind javadoc for new private method for injecting env vars