code: public static AppendRule newInstance(AspectranParameters aspectranParameters, String profile) {
          AppendRule appendRule = new AppendRule();
          appendRule.setAspectranParameters(aspectranParameters);
          if (profile != null && !profile.isEmpty()) {
              appendRule.setProfile(profile);
          }
          return appendRule;
      }
docs: Create a new AppendRule.
  
  @param aspectranParameters the aspectran parameters to append
  @param profile the environment profile name
  @return an {@code AppendRule} object