code: public static EnvironmentRule newInstance(String profile) {
          EnvironmentRule environmentRule = new EnvironmentRule();
          environmentRule.setProfile(profile);
          return environmentRule;
      }
docs: Returns a new instance of EnvironmentRule.
  
  @param profile the profile
  @return an instance of EnvironmentRule