protected static SimpleDateFormat getLog4j2Appender() {
    Optional<Appender> log4j2xmlAppender =
      configuration.getAppenders().values().stream()
        .filter( a -> a.getName().equalsIgnoreCase( log4J2Appender ) ).findFirst();
    if ( log4j2xmlAppender.isPresent() ) {
      ArrayList<String> matchesArray = new ArrayList<>();
      String dateFormatFromLog4j2xml = log4j2xmlAppender.get().getLayout().getContentFormat().get( "format" );
      Pattern pattern = Pattern.compile( "(\\{(.*?)})" );
      Matcher matcher = pattern.matcher( dateFormatFromLog4j2xml );
      while ( matcher.find() ) {
        matchesArray.add( matcher.group( 2 ) );
      }
      if ( !matchesArray.isEmpty() ) {
        return processMatches( matchesArray );
      }
    }
    return new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss" );
  }
@Test
  public void testGetLog4j2UsingAppender9() {
    // Testing adding empty {} for TimeZone
    KettleLogLayout.log4J2Appender = "pdi-execution-appender-test-9";
    Assert.assertEquals( "MMM/dd,yyyy HH:mm:ss",
      KettleLogLayout.getLog4j2Appender().toPattern() );
  }