private List < String > convertExports ( Map < String , String > exports ) { List < String > result = new ArrayList <> ( ) ; for ( Map . Entry < String , String > entry : exports . entrySet ( ) ) { String componentOrFacet = VariableHelpers . parseVariableName ( entry . getKey ( ) ) . getKey ( ) ; String s = Utils . isEmptyOrWhitespaces ( componentOrFacet ) ? entry . getKey ( ) : applyLink ( entry . getKey ( ) , componentOrFacet ) ; if ( ! Utils . isEmptyOrWhitespaces ( entry . getValue ( ) ) ) s += MessageFormat . format ( this . messages . get ( "default" ) , entry . getValue ( ) ) ; //$NON-NLS-1$ if ( entry . getKey ( ) . toLowerCase ( ) . endsWith ( ".ip" ) ) //$NON-NLS-1$ s += this . messages . get ( "injected" ) ; //$NON-NLS-1$ result . add ( s ) ; } return result ; }
Converts exports to a human - readable text .