public Collection < Application > list ( String name ) { List < Application > ret = new ArrayList < Application > ( ) ; Collection < Application > applications = list ( ) ; for ( Application application : applications ) { if ( name == null || application . getName ( ) . equals ( name ) ) ret . add ( application ) ; } return ret ; }
Returns the set of applications for the given name .