public static void submit ( Optional < EventSubmitter > submitter , String name ) { if ( submitter . isPresent ( ) ) { submitter . get ( ) . submit ( name ) ; } }
Calls submit on submitter if present .