return value;
}
private UserInterfaceOptions readUserInterfaceOptions( String prefix, Registry registry )
{
UserInterfaceOptions value = new UserInterfaceOptions();
boolean showFindArtifacts = registry.getBoolean( prefix + "showFindArtifacts", value.isShowFindArtifacts() );
value.setShowFindArtifacts( showFindArtifacts );
boolean appletFindEnabled = registry.getBoolean( prefix + "appletFindEnabled", value.isAppletFindEnabled() );
value.setAppletFindEnabled( appletFindEnabled );
boolean disableEasterEggs = registry.getBoolean( prefix + "disableEasterEggs", value.isDisableEasterEggs() );
value.setDisableEasterEggs( disableEasterEggs );
//String applicationUrl = registry.getString( prefix + "applicationUrl", value.getApplicationUrl() );
List<String> applicationUrlList = registry.getList( prefix + "applicationUrl" );
String applicationUrl = value.getApplicationUrl();
if (applicationUrlList != null && !applicationUrlList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = applicationUrlList.size();i<size;i++)
{
sb.append( applicationUrlList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
applicationUrl = sb.toString();
}
value.setApplicationUrl( applicationUrl );
boolean disableRegistration = registry.getBoolean( prefix + "disableRegistration", value.isDisableRegistration() );
value.setDisableRegistration( disableRegistration );
return value;
}