return value;
}
private RemoteRepositoryConfiguration readRemoteRepositoryConfiguration( String prefix, Registry registry )
{
RemoteRepositoryConfiguration value = new RemoteRepositoryConfiguration();
String url = registry.getString( prefix + "url", value.getUrl() );
value.setUrl( url );
String username = registry.getString( prefix + "username", value.getUsername() );
value.setUsername( username );
String password = registry.getString( prefix + "password", value.getPassword() );
value.setPassword( password );
int timeout = registry.getInt( prefix + "timeout", value.getTimeout() );
value.setTimeout( timeout );
String refreshCronExpression = registry.getString( prefix + "refreshCronExpression", value.getRefreshCronExpression() );
value.setRefreshCronExpression( refreshCronExpression );
boolean downloadRemoteIndex = registry.getBoolean( prefix + "downloadRemoteIndex", value.isDownloadRemoteIndex() );
value.setDownloadRemoteIndex( downloadRemoteIndex );
String remoteIndexUrl = registry.getString( prefix + "remoteIndexUrl", value.getRemoteIndexUrl() );
value.setRemoteIndexUrl( remoteIndexUrl );
String remoteDownloadNetworkProxyId = registry.getString( prefix + "remoteDownloadNetworkProxyId", value.getRemoteDownloadNetworkProxyId() );
value.setRemoteDownloadNetworkProxyId( remoteDownloadNetworkProxyId );
int remoteDownloadTimeout = registry.getInt( prefix + "remoteDownloadTimeout", value.getRemoteDownloadTimeout() );
value.setRemoteDownloadTimeout( remoteDownloadTimeout );
String id = registry.getString( prefix + "id", value.getId() );
value.setId( id );
String name = registry.getString( prefix + "name", value.getName() );
value.setName( name );
String layout = registry.getString( prefix + "layout", value.getLayout() );
value.setLayout( layout );
String indexDir = registry.getString( prefix + "indexDir", value.getIndexDir() );
value.setIndexDir( indexDir );
return value;
}