@Override public AppConfigurationEntry[] engineGetAppConfigurationEntry(String applicationName){
  List<AppConfigurationEntry> list=null;
synchronized (configuration) {
    list=configuration.get(applicationName);
  }
  if (list == null || list.size() == 0) {
    return null;
  }
  AppConfigurationEntry[] entries=new AppConfigurationEntry[list.size()];
  Iterator<AppConfigurationEntry> iterator=list.iterator();
  for (int i=0; iterator.hasNext(); i++) {
    AppConfigurationEntry e=iterator.next();
    entries[i]=new AppConfigurationEntry(e.getLoginModuleName(),e.getControlFlag(),e.getOptions());
  }
  return entries;
}

@ Override public AppConfigurationEntry [ ] engineGetAppConfigurationEntry ( String applicationName ) { List < AppConfigurationEntry > list = null ; synchronized ( configuration ) { list = configuration . get ( applicationName ) ; } if ( list == null || list . size ( ) == 0 ) { return null ; } AppConfigurationEntry [ ] entries = new AppConfigurationEntry [ list . size ( ) ] ; Iterator < AppConfigurationEntry > iterator = list . iterator ( ) ; for ( int i = 0 ; iterator . hasNext ( ) ; i ++ ) { AppConfigurationEntry e = iterator . next ( ) ; entries [ i ] = new AppConfigurationEntry ( e . getLoginModuleName ( ) , e . getControlFlag ( ) , e . getOptions ( ) ) ; } return entries ; }
retrieve an entry from the configuration using an application name as an index .
