private void addAlias ( ArrayList < HashMap < String , Object > > list , String aliasName ) { for ( HashMap < String , Object > h : list ) { String name = ( String ) h . get ( "name" ) ; if ( name != null && name . equals ( aliasName ) ) { return ; // avoid duplicates } } HashMap < String , Object > h = new HashMap < String , Object > ( ) ; h . put ( "isClasspathFile" , Boolean . TRUE ) ; h . put ( "name" , aliasName ) ; h . put ( "includeInDeployment" , Boolean . TRUE ) ; list . add ( h ) ; }
This method add an alias in the object used internally by TIBCO BusinessWorks .