public static Environment parse ( final String s ) { if ( s == null || s . isEmpty ( ) || s . trim ( ) . isEmpty ( ) ) return GlobalEnvironment . INSTANCE ; final String [ ] tokens = StringUtils . tokenize ( s , ' ' ) ; final DynamicEnvironment env = new DynamicEnvironment ( ) ; for ( final String t : tokens ) { env . add ( t ) ; } return env ; }
Parses a string and creates a new Environment which corresponds the string .